polyMesh: Prevent "no points/cells" warnings on processor cases
This commit is contained in:
@ -326,12 +326,13 @@ Foam::polyMesh::polyMesh(const IOobject& io)
|
|||||||
boundary_.calcGeometry();
|
boundary_.calcGeometry();
|
||||||
|
|
||||||
// Warn if global empty mesh
|
// Warn if global empty mesh
|
||||||
if (returnReduce(nPoints(), sumOp<label>()) == 0)
|
const bool complete = Pstream::parRun() || !time().processorCase();
|
||||||
|
if (complete && returnReduce(nPoints(), sumOp<label>()) == 0)
|
||||||
{
|
{
|
||||||
WarningInFunction
|
WarningInFunction
|
||||||
<< "no points in mesh" << endl;
|
<< "no points in mesh" << endl;
|
||||||
}
|
}
|
||||||
if (returnReduce(nCells(), sumOp<label>()) == 0)
|
if (complete && returnReduce(nCells(), sumOp<label>()) == 0)
|
||||||
{
|
{
|
||||||
WarningInFunction
|
WarningInFunction
|
||||||
<< "no cells in mesh" << endl;
|
<< "no cells in mesh" << endl;
|
||||||
|
|||||||
Reference in New Issue
Block a user