mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: reduce inside if statement, not valid on all processors.
This commit is contained in:
@ -1630,12 +1630,9 @@ Foam::labelHashSet Foam::conformalVoronoiMesh::checkPolyMeshQuality
|
||||
}
|
||||
}
|
||||
|
||||
if (checkFaces.size() < fAreas.size())
|
||||
{
|
||||
Info<< "Excluding "
|
||||
<< returnReduce(fAreas.size() - checkFaces.size(), sumOp<label>())
|
||||
<< " faces from check, < " << faceAreaLimit << " area" << endl;
|
||||
}
|
||||
Info<< "Excluding "
|
||||
<< returnReduce(fAreas.size() - checkFaces.size(), sumOp<label>())
|
||||
<< " faces from check, < " << faceAreaLimit << " area" << endl;
|
||||
|
||||
motionSmoother::checkMesh
|
||||
(
|
||||
|
||||
@ -696,10 +696,13 @@ void Foam::conformalVoronoiMesh::findRemainingProtrusionSet
|
||||
}
|
||||
}
|
||||
|
||||
if (returnReduce(protrudingCells.size(), sumOp<label>()) > 0)
|
||||
label protrudingCellsSize = protrudingCells.size();
|
||||
|
||||
reduce(protrudingCellsSize, sumOp<label>());
|
||||
|
||||
if (protrudingCellsSize > 0)
|
||||
{
|
||||
Info<< nl << "Found "
|
||||
<< returnReduce(protrudingCells.size(), sumOp<label>())
|
||||
Info<< nl << "Found " << protrudingCellsSize
|
||||
<< " cells protruding from the surface, writing cellSet "
|
||||
<< protrudingCells.name()
|
||||
<< endl;
|
||||
|
||||
Reference in New Issue
Block a user