40 #ifndef Foam_IPstream_H 41 #define Foam_IPstream_H 68 const int bufferSize = 0,
148 template<
class Type,
class... Args>
151 const int communicator,
static void recv(Type &value, const int communicator=UPstream::worldComm)
Receive (from broadcast, root == UPstream::masterNo()) and deserialize a value. Uses operator>> for d...
IPstream(const UPstream::commsTypes commsType, const int fromProcNo, const int bufferSize=0, const int tag=UPstream::msgType(), const int communicator=UPstream::worldComm, IOstreamOption::streamFormat fmt=IOstreamOption::BINARY)
Construct given process index to read from.
commsTypes
Communications types.
IPBstream(const int communicator=UPstream::worldComm, IOstreamOption::streamFormat fmt=IOstreamOption::BINARY)
Construct with optional communicator and read format. Uses UPstream::masterNo() root.
static int & msgType() noexcept
Message tag of standard messages.
static label worldComm
Communicator for all ranks. May differ from commGlobal() if local worlds are in use.
Input inter-processor communications stream.
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
Input inter-processor communications stream using MPI send/recv etc. - operating on external buffer...
Input inter-processor communications stream using MPI broadcast - operating on external buffer...
"scheduled" (MPI standard) : (MPI_Send, MPI_Recv)
static void recv(Type &value, const int fromProcNo, const int tag=UPstream::msgType(), const int communicator=UPstream::worldComm, IOstreamOption::streamFormat fmt=IOstreamOption::BINARY)
Receive and deserialize a value. Uses operator>> for de-serialization.
Inter-processor communications stream.
void inputLoop(IS &is, Type &arg1, Args &&... args)
Input looping. Read into first parameter and recurse.
commsTypes commsType() const noexcept
Get the communications type of the stream.
Wrapper for internally indexed communicator label. Always invokes UPstream::allocateCommunicatorCompo...
Input inter-processor communications stream using MPI broadcast.
streamFormat
Data format (ascii | binary)
static void recvs(const int communicator, Type &value, Args &&... values)
Receive (from broadcast) a buffer and deserialize multiple items. Uses operator>> for de-serializatio...