Go to the documentation of this file.
66 template<
class Container,
class T>
67 static void exchangeContainer
81 static void exchangeBuf
113 const label bufSize = 0
130 template<
class T,
class BinaryOp>
141 template<
class T,
class BinaryOp>
172 template<
class T,
class CombineOp>
177 const CombineOp& cop,
183 template<
class T,
class CombineOp>
187 const CombineOp& cop,
213 template<
class T,
class CombineOp>
218 const CombineOp& cop,
224 template<
class T,
class CombineOp>
228 const CombineOp& cop,
255 template<
class Container,
class CombineOp>
260 const CombineOp& cop,
266 template<
class Container,
class CombineOp>
270 const CombineOp& cop,
276 template<
class Container>
286 template<
class Container>
343 template<
class Container,
class T>
351 const bool block =
true
357 template<
class Container>
360 const Container& sendData,
368 template<
class Container,
class T>
375 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 exchangeSizes(const Container &sendData, labelList &sizes, const label comm=UPstream::worldComm)
Helper: exchange sizes of sendData. sendData is the data per.
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.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
commsTypes commsType() const
Get the communications type of the stream.
static void exchange(const UList< Container > &sendData, const labelUList &recvSizes, List< Container > &recvData, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm, const bool block=true)
Helper: exchange contiguous data. Sends sendData, receives into.
static void combineGather(const List< commsStruct > &comms, T &Value, const CombineOp &cop, const int tag, const label comm)
void setCapacity(const label nElem)
Alter the size of the underlying storage.
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:
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
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.