ENH: use returnReduceAnd(), returnReduceOr() functions

DOC: document which MPI send/recv are associated with commType
This commit is contained in:
Mark Olesen
2022-08-24 12:00:44 +02:00
committed by Andrew Heather
parent 473e14418a
commit 70208a7399
172 changed files with 574 additions and 840 deletions

View File

@ -3782,7 +3782,7 @@ void Foam::distributedTriSurfaceMesh::findLineAll
label iter = 0;
while (returnReduce(e0.size(), sumOp<label>()) > 0)
while (returnReduceOr(e0.size()))
{
findLine
(
@ -4131,11 +4131,7 @@ void Foam::distributedTriSurfaceMesh::getVolumeType
// status, all others will return UNKNOWN. Make INSIDE/OUTSIDE win.
outsideVolType_ = volumeType
(
returnReduce
(
label(outsideVolTypes[0]),
maxOp<label>()
)
returnReduce(int(outsideVolTypes[0]), maxOp<int>())
);
if (debug)