Commit 04f78c79 authored by Samuel Burbulla's avatar Samuel Burbulla

[swartz] Fix segfault.

parent 1ea2ea62
......@@ -215,6 +215,9 @@ namespace Dune
interfaceNb2.centroid() - interfaceEn.centroid()
);
if ( centerNormal.two_norm() < 0.5 )
continue;
if ( centerNormal * oldNormal < 0 )
centerNormal *= -1.0;
normalize( centerNormal );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment