polyMesh: Correct CELL_TETS mode in findCell

Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1792
This commit is contained in:
Henry Weller
2015-10-19 16:59:19 +01:00
parent 95c4f934db
commit 2c46bf1554

View File

@ -1483,11 +1483,7 @@ Foam::label Foam::polyMesh::findCell
return -1;
}
if
(
Pstream::parRun()
&& (decompMode == FACE_DIAG_TRIS || decompMode == CELL_TETS)
)
if (Pstream::parRun() && decompMode == FACE_DIAG_TRIS)
{
// Force construction of face-diagonal decomposition before testing
// for zero cells.