Skip to content
Snippets Groups Projects
Commit 58d6da27 authored by Mattijs Janssens's avatar Mattijs Janssens
Browse files

Check for cell found.

parent dd3a79a3
No related branches found
No related tags found
No related merge requests found
......@@ -142,7 +142,7 @@ bool Foam::surfaceToCell::differingPointNormals
pointToNearest
);
if (pointTriI != cellTriI)
if (pointTriI != -1 && pointTriI != cellTriI)
{
scalar cosAngle = normals[pointTriI] & normals[cellTriI];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment