ENH: polyMesh: handle locally zero cells
This commit is contained in:
parent
322f93660c
commit
7ac96f1f97
1 changed files with 10 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
|||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
|
|
@ -1448,6 +1448,15 @@ Foam::label Foam::polyMesh::findCell
|
|||
const cellRepresentation decompMode
|
||||
) const
|
||||
{
|
||||
if (Pstream::parRun() && decompMode == FACEDIAGTETS)
|
||||
{
|
||||
// Force construction of face-diagonal decomposition before testing
|
||||
// for zero cells. If parallel running a local domain might have zero
|
||||
// cells so never construct the face-diagonal decomposition (which
|
||||
// uses parallel transfers)
|
||||
(void)tetBasePtIs();
|
||||
}
|
||||
|
||||
if (nCells() == 0)
|
||||
{
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue