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>
308 template<
class Container,
class T>
316 const bool block =
true 322 template<
class Container>
325 const Container& sendData,
333 template<
class Container,
class T>
340 const bool block =
true static void scatterList(const List< commsStruct > &comms, List< T > &Values, const int tag, const label comm)
Scatter data. Reverse of gatherList.
commsTypes commsType() const
Get the communications type of the stream.
static void listCombineScatter(const List< commsStruct > &comms, List< T > &Value, const int tag, const label comm)
Scatter data. Reverse of combineGather.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Gather data from all processors onto single processor according to some communication schedule (usual...
commsTypes
Types of communications.
DynamicList< char > buf_
Transfer buffer.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
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 int & msgType()
Message tag of standard messages.
static label worldComm
Default communicator (all processors)
static void listCombineGather(const List< commsStruct > &comms, List< T > &Value, const CombineOp &cop, const int tag, const label comm)
static void mapCombineScatter(const List< commsStruct > &comms, Container &Values, const int tag, const label comm)
Scatter data. Reverse of combineGather.
static void exchangeSizes(const Container &sendData, labelList &sizes, const label comm=UPstream::worldComm)
Helper: exchange sizes of sendData. sendData is the data per.
Inter-processor communications stream.
Gather data from all processors onto single processor according to some communication schedule (usual...
void setCapacity(const label)
Alter the size of the underlying storage.
static void combineGather(const List< commsStruct > &comms, T &Value, const CombineOp &cop, const int tag, const label comm)
static void mapCombineGather(const List< commsStruct > &comms, Container &Values, const CombineOp &cop, const int tag, const label comm)
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 scatter(const List< commsStruct > &comms, T &Value, const int tag, const label comm)
Scatter data. Distribute without modification. Reverse of gather.
Pstream(const commsTypes commsType, const label bufSize=0)
Construct given optional buffer size.
Creates a single block of cells from point coordinates, numbers of cells in each direction and an exp...
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
static void combineScatter(const List< commsStruct > &comms, T &Value, const int tag, const label comm)
Scatter data. Reverse of combineGather.
static void gatherList(const List< commsStruct > &comms, List< T > &Values, const int tag, const label comm)
Gather data but keep individual values separate.
Inter-processor communications stream.
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.