ENH: particleI.H: check for duplicate faces

This commit is contained in:
mattijs
2011-07-07 16:17:58 +01:00
parent 227f440496
commit 8f435b1b18

View File

@ -514,6 +514,16 @@ inline void Foam::particle::crossEdgeConnectedFace
{
continue;
}
else if (f == pFaces[fI])
{
// This is a necessary condition if using duplicate baffles
// (so coincident faces). We need to make sure we don't cross into
// the face with the same vertices since we might enter a tracking
// loop where it never exits. This test should be cheap
// for most meshes so can be left in for 'normal' meshes.
continue;
}
else
{
//Found edge on other face