Go to the documentation of this file.
78 const label bufSize = 0
95 template<
class T,
class BinaryOp>
106 template<
class T,
class BinaryOp>
137 template<
class T,
class CombineOp>
142 const CombineOp& cop,
148 template<
class T,
class CombineOp>
152 const CombineOp& cop,
178 template<
class T,
class CombineOp>
183 const CombineOp& cop,
189 template<
class T,
class CombineOp>
193 const CombineOp& cop,
220 template<
class Container,
class CombineOp>
225 const CombineOp& cop,
231 template<
class Container,
class CombineOp>
235 const CombineOp& cop,
241 template<
class Container>
251 template<
class Container>
310 template<
class Container,
class T>
318 const bool block =
true
Pstream(const commsTypes commsType, const label bufSize=0)
Construct given optional buffer size.
static void mapCombineGather(const List< commsStruct > &comms, Container &Values, const CombineOp &cop, const int tag, const label comm)
Gather data from all processors onto single processor according to some communication schedule (usual...
Creates a single block of cells from point coordinates, numbers of cells in each direction and an exp...
static void scatterList(const List< commsStruct > &comms, List< T > &Values, const int tag, const label comm)
Scatter data. Reverse of gatherList.
static void scatter(const List< commsStruct > &comms, T &Value, const int tag, const label comm)
Scatter data. Distribute without modification. Reverse of gather.
Gather data from all processors onto single processor according to some communication schedule (usual...
UPstream(const commsTypes commsType)
Construct given optional buffer size.
static void gather(const List< commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
Gather data. Apply bop to combine Value.
DynamicList< char > buf_
Transfer buffer.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Inter-processor communications stream.
static void exchange(const List< Container > &, List< Container > &, labelListList &sizes, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm, const bool block=true)
Exchange data. Sends sendData, receives into recvData, sets.
void setCapacity(const label)
Alter the size of the underlying storage.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
commsTypes commsType() const
Get the communications type of the stream.
static void combineGather(const List< commsStruct > &comms, T &Value, const CombineOp &cop, const int tag, const label comm)
static void listCombineGather(const List< commsStruct > &comms, List< T > &Value, const CombineOp &cop, const int tag, const label comm)
static int & msgType()
Message tag of standard messages.
commsTypes
Types of communications.
static void gatherList(const List< commsStruct > &comms, List< T > &Values, const int tag, const label comm)
Gather data but keep individual values separate.
static void mapCombineScatter(const List< commsStruct > &comms, Container &Values, const int tag, const label comm)
Scatter data. Reverse of combineGather.
Inter-processor communications stream.
static label worldComm
Default communicator (all processors)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Variant of gather, scatter. Normal gather uses:
static void listCombineScatter(const List< commsStruct > &comms, List< T > &Value, const int tag, const label comm)
Scatter data. Reverse of combineGather.
static void combineScatter(const List< commsStruct > &comms, T &Value, const int tag, const label comm)
Scatter data. Reverse of combineGather.