38 const bool sendAtDestruct,
57 const int communicator,
81 <<
"Failed broadcast message of size " << sendBuf_.size()
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
streamFormat
Data format (ascii | binary | coherent).
OPBstream(const int communicator=UPstream::worldComm, IOstreamOption::streamFormat fmt=IOstreamOption::BINARY)
Construct with optional communicator and write format.
Inter-processor communications stream.
DynamicList< char > transferBuf_
Allocated transfer buffer (can be used for send or receive).
Pstream(const UPstream::commsTypes commsType) noexcept
Construct for communication type with empty buffer.
Output inter-processor communications stream using MPI broadcast - operating on external buffer.
UOPBstream(DynamicList< char > &sendBuf, const int communicator=UPstream::worldComm, const bool sendAtDestruct=true, IOstreamOption::streamFormat fmt=IOstreamOption::BINARY)
Construct with attached send buffer, optional communication characteristics and IO format.
virtual ~UOPBstream()
Destructor, usually sends buffer on destruct.
DynamicList< char > & sendBuf_
Reference to the send buffer data.
bool sendAtDestruct_
Call bufferIPCsend on termination (in the destructor).
UOPstreamBase(const UPstream::commsTypes commsType, const int toProcNo, DynamicList< char > &sendBuf, const int tag=UPstream::msgType(), const int communicator=UPstream::worldComm, const bool sendAtDestruct=true, IOstreamOption::streamFormat fmt=IOstreamOption::BINARY)
Construct given process index to write to using the given attached send buffer, optional communicatio...
Wrapper for internally indexed communicator label. Always invokes UPstream::allocateCommunicatorCompo...
Inter-processor communications stream.
commsTypes
Communications types.
static int & msgType() noexcept
Message tag of standard messages.
static constexpr int masterNo() noexcept
Relative rank for the master process - is always 0.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManip< error > abort(error &err)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...