20 #ifndef FoamCompat_PstreamCombineReduceOps_H 21 #define FoamCompat_PstreamCombineReduceOps_H 34 template<
class T,
class CombineOp>
void combineReduce(T &value, const CombineOp &cop, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm)
Compatibility wrapper for Pstream::combineReduce.
Various functors for unary and binary operations. Can be used for parallel combine-reduce operations ...
static int & msgType() noexcept
Message tag of standard messages.
static label worldComm
Communicator for all ranks. May differ from commGlobal() if local worlds are in use.
static void combineReduce(T &value, const CombineOp &cop, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm)
Reduce inplace (cf. MPI Allreduce) applying cop to inplace combine value from different processors...
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)