65 #undef Pstream_CommonReductions 66 #define Pstream_CommonReductions(Native) \ 72 const minOp<Native>&, \ 82 const maxOp<Native>&, \ 92 const sumOp<Native>&, \ 101 const minOp<Native>&, \ 110 const maxOp<Native>&, \ 119 const sumOp<Native>&, \ 130 #undef Pstream_FloatReductions 131 #define Pstream_FloatReductions(Native) \ 133 Pstream_CommonReductions(Native); \ 139 const sumOp<Native>&, \ 142 UPstream::Request& req \ 151 const sumOp<Native>&, \ 161 const sumOp<Native>&, \ 164 UPstream::Request& req \ 172 const sumOp<Native>&, \ 179 void Foam::sumReduce \ 193 #undef Pstream_BitwiseReductions 194 #define Pstream_BitwiseReductions(Native) \ 200 const bitOrOp<Native>&, \ 209 const bitOrOp<Native>&, \ 231 #undef Pstream_CommonReductions 232 #undef Pstream_FloatReductions 233 #undef Pstream_BitwiseReductions Inter-processor communication reduction functions.
static void reduceOr(bool &value, const label communicator=worldComm)
Logical (or) reduction (MPI_AllReduce)
#define Pstream_BitwiseReductions(Native)
static void reduceAnd(bool &value, const label communicator=worldComm)
Logical (and) reduction (MPI_AllReduce)
#define Pstream_FloatReductions(Native)
#define Pstream_CommonReductions(Native)
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.