36 #ifndef PstreamCombineReduceOps_H 37 #define PstreamCombineReduceOps_H 50 template<
class T,
class CombineOp>
65 template<
class T,
class CombineOp>
void combineReduce(const List< UPstream::commsStruct > &comms, T &Value, const CombineOp &cop, const int tag, const label comm)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
static int nProcsSimpleSum
Number of processors at which the sum algorithm changes from linear.
Combination-Reduction operation for a parallel run.
static int & msgType()
Message tag of standard messages.
static label worldComm
Default communicator (all processors)
static const List< commsStruct > & linearCommunication(const label communicator=0)
Communication schedule for linear all-to-master (proc 0)
static const List< commsStruct > & treeCommunication(const label communicator=0)
Communication schedule for tree all-to-master (proc 0)
static void combineGather(const List< commsStruct > &comms, T &Value, const CombineOp &cop, const int tag, const label comm)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
static label nProcs(const label communicator=0)
Number of processes in parallel run.
static void combineScatter(const List< commsStruct > &comms, T &Value, const int tag, const label comm)
Scatter data. Reverse of combineGather.