mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
ENH: use returnReduceAnd(), returnReduceOr() functions
DOC: document which MPI send/recv are associated with commType
This commit is contained in:
committed by
Andrew Heather
parent
473e14418a
commit
70208a7399
@ -665,7 +665,7 @@ void removeZeroSizedPatches(fvMesh& mesh)
|
||||
if
|
||||
(
|
||||
isA<coupledPolyPatch>(pp)
|
||||
|| returnReduce(pp.size(), sumOp<label>())
|
||||
|| returnReduceOr(pp.size())
|
||||
)
|
||||
{
|
||||
// Coupled (and unknown size) or uncoupled and used
|
||||
@ -1891,11 +1891,8 @@ int main(int argc, char *argv[])
|
||||
);
|
||||
|
||||
// Use the maxLocalCells from the refinement parameters
|
||||
bool preBalance = returnReduce
|
||||
(
|
||||
(mesh.nCells() >= refineParams.maxLocalCells()),
|
||||
orOp<bool>()
|
||||
);
|
||||
const bool preBalance =
|
||||
returnReduceOr(mesh.nCells() >= refineParams.maxLocalCells());
|
||||
|
||||
|
||||
if (!overwrite && !debugLevel)
|
||||
|
||||
Reference in New Issue
Block a user