39 label& receiveBufPosition,
42 const bool clearAtEnd,
71 UIPstreamBase(fromProcNo, buffers)
80 Perr<<
"UIPstream::UIPstream PstreamBuffers :"
96 const DynamicList<char>& recvBuf,
107 const int fromProcNo,
108 const int bufferSize,
110 const int communicator,
114 Pstream(commsType, bufferSize),
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).
IPstream(const UPstream::commsTypes commsType, const int fromProcNo, const int bufferSize=0, const int tag=UPstream::msgType(), const int communicator=UPstream::worldComm, IOstreamOption::streamFormat fmt=IOstreamOption::BINARY)
Construct given process index to read from.
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 input inter-processor communications stream (ie, parallel streams)....
label storedRecvBufPos_
Receive position in buffer data, if ony If there is no external location for recvBufPos_.
const int fromProcNo_
Source rank for the data.
const int tag_
Message tag for communication.
const int comm_
The communicator index.
label messageSize_
The message size, read on bufferIPCrecv or set directly.
UIPstreamBase(const UPstream::commsTypes commsType, const int fromProcNo, DynamicList< char > &receiveBuf, label &receiveBufPosition, const int tag=UPstream::msgType(), const int communicator=UPstream::worldComm, const bool clearAtEnd=false, IOstreamOption::streamFormat fmt=IOstreamOption::BINARY)
Construct given process index to read from using the given attached receive buffer,...
DynamicList< char > & recvBuf_
Reference to the receive buffer data.
Input inter-processor communications stream using MPI send/recv etc. - operating on external buffer.
UIPstream(const UPstream::commsTypes commsType, const int fromProcNo, DynamicList< char > &receiveBuf, label &receiveBufPosition, const int tag=UPstream::msgType(), const int communicator=UPstream::worldComm, const bool clearAtEnd=false, IOstreamOption::streamFormat fmt=IOstreamOption::BINARY)
Construct given process index to read from using the given attached receive buffer,...
void size(const label n)
Older name for setAddressableSize.
Wrapper for internally indexed communicator label. Always invokes UPstream::allocateCommunicatorCompo...
commsTypes
Communications types.
@ nonBlocking
"nonBlocking" (immediate) : (MPI_Isend, MPI_Irecv)
commsTypes commsType() const noexcept
Get the communications type of the stream.
Namespace for handling debugging switches.
prefixOSstream Perr
OSstream wrapped stderr (std::cerr) with parallel prefix.
Ostream & endl(Ostream &os)
Add newline and flush stream.