41 const bool sendAtDestruct,
71 const int communicator,
94 return bufferIPCsend();
110 if (!bufferIPCsend())
113 <<
"Failed sending outgoing message of size "
114 << sendBuf_.size() <<
" to processor " << toProcNo_
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
streamFormat
Data format (ascii | binary | coherent).
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.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
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.
Base class for output inter-processor communications stream (ie, parallel streams)....
DynamicList< char > & sendBuf_
Reference to the send buffer data.
const int toProcNo_
Destination rank for the 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...
Output inter-processor communications stream using MPI send/recv etc. - operating on external buffer.
virtual ~UOPstream()
Destructor, usually sends buffer on destruct.
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...
bool send()
Send buffer contents now and not in destructor [advanced usage]. Returns true on success.
Wrapper for internally indexed communicator label. Always invokes UPstream::allocateCommunicatorCompo...
commsTypes
Communications types.
commsTypes commsType() const noexcept
Get the communications type of the stream.
#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...