32 template<
class T,
class BinaryOp>
static int & msgType() noexcept
Message tag of standard messages.
virtual label comm() const =0
Return communicator used for parallel communication.
void reduce(T &value, const BinaryOp &bop, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm)
Reduce inplace (cf. MPI Allreduce) using linear/tree communication schedule.
void reduce(T &Value, const BinaryOp &bop) const
Helper: reduce with current communicator.