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:
Mark Olesen
2023-07-18 08:54:34 +02:00
parent 95b820368c
commit 65cddb6120
17 changed files with 55 additions and 90 deletions

View File

@ -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)

View File

@ -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)
{