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>())
|
||||||
Info<< "Excluding "
|
<< " faces from check, < " << faceAreaLimit << " area" << endl;
|
||||||
<< returnReduce(fAreas.size() - checkFaces.size(), sumOp<label>())
|
|
||||||
<< " faces from check, < " << faceAreaLimit << " area" << endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
motionSmoother::checkMesh
|
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 "
|
Info<< nl << "Found " << protrudingCellsSize
|
||||||
<< returnReduce(protrudingCells.size(), sumOp<label>())
|
|
||||||
<< " cells protruding from the surface, writing cellSet "
|
<< " cells protruding from the surface, writing cellSet "
|
||||||
<< protrudingCells.name()
|
<< protrudingCells.name()
|
||||||
<< endl;
|
<< endl;
|
||||||
|
|||||||
Reference in New Issue
Block a user