41 const bool sendAtDestruct,
45 UOPstreamBase(commsType, toProcNo, sendBuf, tag, comm, sendAtDestruct, fmt)
51 const commsTypes commsType,
101 <<
"Failed broadcast message of size " 102 << sendBuf_.size() <<
" root: " << toProcNo_
commsTypes
Types of communications.
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.
OPBstream(const commsTypes commsType, 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.
UOPBstream(const commsTypes commsType, 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...
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
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)
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.