mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Check for cell found.
This commit is contained in:
@ -142,7 +142,7 @@ bool Foam::surfaceToCell::differingPointNormals
|
|||||||
pointToNearest
|
pointToNearest
|
||||||
);
|
);
|
||||||
|
|
||||||
if (pointTriI != cellTriI)
|
if (pointTriI != -1 && pointTriI != cellTriI)
|
||||||
{
|
{
|
||||||
scalar cosAngle = normals[pointTriI] & normals[cellTriI];
|
scalar cosAngle = normals[pointTriI] & normals[cellTriI];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user