Remove global reduce in immersed boundary polyPatch. Testing, load balance

This commit is contained in:
Hrvoje Jasak 2018-10-24 17:10:47 +01:00
parent 69d3b15a86
commit 556b9c0731

View file

@ -1056,9 +1056,11 @@ void Foam::immersedBoundaryPolyPatch::calcImmersedBoundary() const
totalIbCount[3] = nDeadFaces;
}
// Reduce is not allowed in parallel load balancing
// HJ, 24/Oct/2018
// if (debug)
{
reduce(totalIbCount, sumOp<List<label> >());
// reduce(totalIbCount, sumOp<List<label> >());
Info<< "Immersed boundary " << name() << " info: "
<< "nIbCells: " << totalIbCount[0]
@ -1327,7 +1329,6 @@ Foam::immersedBoundaryPolyPatch::immersedBoundaryPolyPatch
correctedIbPatchFaceAreasPtr_(NULL),
oldIbPointsPtr_(NULL)
{
Pout<< "READ CONSTRUCTOR" << endl;
if (size() > 0)
{
FatalIOErrorIn