42 const bool sendAtDestruct,
46 UOPstreamBase(commsType, toProcNo, sendBuf, tag, comm, sendAtDestruct, fmt)
72 const int communicator,
94 <<
"Constructed with non-blocking and send-at-destruct.\n" 95 <<
"This is an error - results in undefined behaviour!\n" 105 sendAtDestruct_ =
false;
106 return bufferIPCsend();
119 if (!bufferIPCsend())
122 <<
"Failed sending outgoing message of size " 123 << sendBuf_.size() <<
" to processor " << 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.
OPstream(const UPstream::commsTypes commsType, const int toProcNo, const int bufferSize=0, const int tag=UPstream::msgType(), const int communicator=UPstream::worldComm, IOstreamOption::streamFormat fmt=IOstreamOption::BINARY)
Construct for given process index to send to.
UOPstream(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...
Inter-processor communications stream.
errorManip< error > abort(error &err)
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...
virtual ~UOPstream()
Destructor, usually sends buffer on destruct.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
bool sendAtDestruct_
Call bufferIPCsend on termination (in the destructor)
streamFormat
Data format (ascii | binary | coherent)
"nonBlocking" (immediate) : (MPI_Isend, MPI_Irecv)
Base class for output inter-processor communications stream (ie, parallel streams). Not to be used directly, thus contructors are protected.
bool send()
Send buffer contents now and not in destructor [advanced usage]. Returns true on success.