mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: specialise bitOr<unsigned char> reduction
STYLE: remove extraneous parRun check before Pstream::combineReduce - already handled by Pstream::combineReduce itself STYLE: remove deprecated globalMeshData::ListPlusEqOp - deprecated/superseded by ListOps::appendEqOp (2020-09) STYLE: qualify stream format with IOstreamOption (easier to find)
This commit is contained in:
@ -30,11 +30,7 @@ if (doLagrangian)
|
||||
nameOp<fileName>()
|
||||
);
|
||||
|
||||
if (UPstream::parRun())
|
||||
{
|
||||
// Synchronise cloud names
|
||||
Pstream::combineReduce(cloudNames, ListOps::uniqueEqOp<word>());
|
||||
}
|
||||
Pstream::combineReduce(cloudNames, ListOps::uniqueEqOp<word>());
|
||||
Foam::sort(cloudNames); // Consistent order
|
||||
|
||||
for (const word& cloudName : cloudNames)
|
||||
|
||||
@ -75,10 +75,7 @@ Foam::label Foam::particleTracksSampler::setTrackFields
|
||||
{
|
||||
wordList fieldNames = obr.names<IOField<Type>>();
|
||||
|
||||
if (Pstream::parRun())
|
||||
{
|
||||
Pstream::combineReduce(fieldNames, ListOps::uniqueEqOp<word>());
|
||||
}
|
||||
Pstream::combineReduce(fieldNames, ListOps::uniqueEqOp<word>());
|
||||
|
||||
for (const word& fieldName : fieldNames)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user