41 const bool sendAtDestruct,
45 UOPstreamBase(commsType, toProcNo, sendBuf, tag, comm, sendAtDestruct, fmt)
101 <<
"Failed broadcast message of size " 102 << sendBuf_.size() <<
" root: " << toProcNo_
commsTypes
Communications types.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
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.
virtual ~UOPBstream()
Destructor, usually sends buffer on destruct.
Output inter-processor communications stream using MPI broadcast - operating on external buffer...
errorManip< error > abort(error &err)
UOPBstream(const UPstream::commsTypes, const int toProcNo, DynamicList< char > &sendBuf, const int tag=UPstream::msgType(), const label comm=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...
Output inter-processor communications stream using MPI broadcast.
streamFormat
Data format (ascii | binary)
Base class for output inter-processor communications stream (ie, parallel streams). Not to be used directly, thus contructors are protected.
Inter-processor communications stream.