40 #ifndef Foam_OPstream_H 41 #define Foam_OPstream_H 69 const label bufSize = 0,
140 const int rootProcNo,
141 const label bufSize = 0,
151 const int rootProcNo,
OPstream(const UPstream::commsTypes commsType, const int toProcNo, const label bufSize=0, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm, IOstreamOption::streamFormat fmt=IOstreamOption::BINARY)
Construct for given process index to send to and optional buffer size, write format.
commsTypes
Communications types.
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.
static void send(const Type &value, const label comm=UPstream::worldComm, IOstreamOption::streamFormat fmt=IOstreamOption::BINARY)
Serialize a value and broadcast (root == UPstream::masterNo()). Uses operator<< for serialization...
"scheduled" (MPI standard) : (MPI_Send, MPI_Recv)
OPBstream(const UPstream::commsTypes, const int rootProcNo, const label bufSize=0, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm, IOstreamOption::streamFormat fmt=IOstreamOption::BINARY)
Construct for broadcast root, optional buffer size, write format.
Inter-processor communications stream.
Output inter-processor communications stream using MPI broadcast - operating on external buffer...
commsTypes commsType() const noexcept
Get the communications type of the stream.
Output inter-processor communications stream using MPI send/recv etc. - operating on external buffer...
OBJstream os(runTime.globalPath()/outputName)
Output inter-processor communications stream.
Output inter-processor communications stream using MPI broadcast.
streamFormat
Data format (ascii | binary)
bool send()
Send buffer contents now and not in destructor [advanced usage]. Returns true on success.