STYLE: reduce bounding box list via list-combine-gather/scatter

This commit is contained in:
Mark Olesen
2017-01-25 23:03:41 +01:00
parent 722d23f59c
commit af4429f94c

View File

@ -909,11 +909,10 @@ Foam::distributedTriSurfaceMesh::independentlyDistributedBbs
// Now combine for all processors and convert to correct format.
forAll(bbs, procI)
{
forAll(bbs[procI], i)
{
bbs[procI][i].reduce();
}
Pstream::listCombineGather(bbs[procI], plusEqOp<boundBox>());
Pstream::listCombineScatter(bbs[procI]);
}
return bbs;
}