mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: prefer listReduce() to using listCombineReduce() when possible
- potentially allows access into the builtin MPI operations
This commit is contained in:
@ -40,7 +40,7 @@ Foam::Field<T> Foam::channelIndex::regionSum(const Field<T>& cellField) const
|
||||
}
|
||||
|
||||
// Global sum
|
||||
Pstream::listCombineReduce(regionField, plusEqOp<T>());
|
||||
Pstream::listReduce(regionField, sumOp<T>());
|
||||
|
||||
return regionField;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user