mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +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
@ -88,11 +88,8 @@ Foam::label Foam::parLagrangianDistributor::distributeFields
|
||||
if (!nFields)
|
||||
{
|
||||
// Performing an all-to-one (reconstruct)?
|
||||
reconstruct = returnReduce
|
||||
(
|
||||
(!map.constructSize() || Pstream::master()),
|
||||
andOp<bool>()
|
||||
);
|
||||
reconstruct =
|
||||
returnReduceAnd(!map.constructSize() || Pstream::master());
|
||||
}
|
||||
|
||||
if (verbose_)
|
||||
@ -195,11 +192,8 @@ Foam::label Foam::parLagrangianDistributor::distributeFieldFields
|
||||
if (!nFields)
|
||||
{
|
||||
// Performing an all-to-one (reconstruct)?
|
||||
reconstruct = returnReduce
|
||||
(
|
||||
(!map.constructSize() || Pstream::master()),
|
||||
andOp<bool>()
|
||||
);
|
||||
reconstruct =
|
||||
returnReduceAnd(!map.constructSize() || Pstream::master());
|
||||
}
|
||||
|
||||
if (verbose_)
|
||||
@ -344,11 +338,8 @@ Foam::label Foam::parLagrangianDistributor::distributeStoredFields
|
||||
if (!nFields)
|
||||
{
|
||||
// Performing an all-to-one (reconstruct)?
|
||||
reconstruct = returnReduce
|
||||
(
|
||||
(!map.constructSize() || Pstream::master()),
|
||||
andOp<bool>()
|
||||
);
|
||||
reconstruct =
|
||||
returnReduceAnd(!map.constructSize() || Pstream::master());
|
||||
}
|
||||
|
||||
if (verbose_)
|
||||
|
||||
@ -1547,7 +1547,7 @@ int main(int argc, char *argv[])
|
||||
if
|
||||
(
|
||||
!volMeshHaveUndecomposed
|
||||
|| !returnReduce(haveVolAddressing, andOp<bool>())
|
||||
|| !returnReduceAnd(haveVolAddressing)
|
||||
)
|
||||
{
|
||||
Info<< "No undecomposed mesh. Creating from: "
|
||||
@ -1615,7 +1615,7 @@ int main(int argc, char *argv[])
|
||||
&&
|
||||
(
|
||||
!areaMeshHaveUndecomposed
|
||||
|| !returnReduce(haveAreaAddressing, andOp<bool>())
|
||||
|| !returnReduceAnd(haveAreaAddressing)
|
||||
)
|
||||
)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user