mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: broadcast instead of combineScatter/listCombineScatter/mapCombineScatter
- these are the same thing now and 'broadcast' expresses the intention more directly/consistently
This commit is contained in:
@ -43,10 +43,12 @@ if (doLagrangian)
|
||||
nameOp<fileName>()
|
||||
);
|
||||
|
||||
// Synchronise cloud names
|
||||
Pstream::combineGather(cloudNames, ListOps::uniqueEqOp<word>());
|
||||
Pstream::combineScatter(cloudNames);
|
||||
|
||||
if (Pstream::parRun())
|
||||
{
|
||||
// Synchronise cloud names
|
||||
Pstream::combineGather(cloudNames, ListOps::uniqueEqOp<word>());
|
||||
Pstream::broadcast(cloudNames);
|
||||
}
|
||||
// Consistent order
|
||||
Foam::sort(cloudNames);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user