Commit 58d6da27 authored by Mattijs Janssens's avatar Mattijs Janssens
Browse files

Check for cell found.

parent dd3a79a3
......@@ -142,7 +142,7 @@ bool Foam::surfaceToCell::differingPointNormals
pointToNearest
);
if (pointTriI != cellTriI)
if (pointTriI != -1 && pointTriI != cellTriI)
{
scalar cosAngle = normals[pointTriI] & normals[cellTriI];
......
Supports Markdown
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