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
129 template<
class T,
class BinaryOp>
140 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,
214 template<
class T,
class CombineOp>
219 const CombineOp& cop,
225 template<
class T,
class CombineOp>
229 const CombineOp& cop,
257 template<
class Container,
class CombineOp>
262 const CombineOp& cop,
268 template<
class Container,
class CombineOp>
272 const CombineOp& cop,
278 template<
class Container>
288 template<
class Container>
345 template<
class Container,
class T>
353 const bool block =
true
359 template<
class Container>
362 const Container& sendData,
370 template<
class Container,
class T>
377 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...
commsTypes commsType() const noexcept
Get the communications type of the stream.
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 for given communication type.
static void gather(const List< commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
void setCapacity(const label len)
Alter the size of the underlying storage.
Inter-processor communications stream.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
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)
static void listCombineGather(const List< commsStruct > &comms, List< T > &Value, const CombineOp &cop, const int tag, const label comm)
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 int & msgType() noexcept
Message tag of standard messages.
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.
DynamicList< char > transferBuf_
Allocated transfer buffer (can be used for send or receive)
static void combineScatter(const List< commsStruct > &comms, T &Value, const int tag, const label comm)
Scatter data. Reverse of combineGather.