40 label& receiveBufPosition,
43 const bool clearAtEnd,
72 UIPstreamBase(fromProcNo, buffers)
81 Perr<<
"UIPstream::UIPstream PstreamBuffers :" 97 const DynamicList<char>& recvBuf,
108 const int fromProcNo,
109 const int bufferSize,
111 const int communicator,
115 Pstream(commsType, bufferSize),
prefixOSstream Perr
OSstream wrapped stderr (std::cerr) with parallel prefix.
void size(const label n)
Older name for setAddressableSize.
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.
commsTypes
Communications types.
Base class for input inter-processor communications stream (ie, parallel streams). Not to be used directly, thus contructors are protected.
int fromProcNo_
Source rank for the data.
Ostream & endl(Ostream &os)
Add newline and flush stream.
label & recvBufPos_
Reference to the receive position in buffer data.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
Input inter-processor communications stream using MPI send/recv etc. - operating on external buffer...
label messageSize_
The message size, read on bufferIPCrecv or set directly.
label storedRecvBufPos_
Receive position in buffer data. If there is no external location for recvBufPos_.
DynamicList< char > release()
Release contents of the input buffer and reset the stream.
Inter-processor communications stream.
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, optional communication characteristics and IO format.
commsTypes commsType() const noexcept
Get the communications type of the stream.
int debug
Static debugging option.
Wrapper for internally indexed communicator label. Always invokes UPstream::allocateCommunicatorCompo...
decomposeUsingBbs false
Use bounding boxes (default) or unique decomposition of triangles (i.e. do not duplicate triangles) ...
DynamicList< char > & recvBuf_
Reference to the receive buffer data.
virtual void rewind() override
Rewind the receive stream position so that it may be read again.
const int tag_
Message tag for communication.
streamFormat
Data format (ascii | binary | coherent)
"nonBlocking" (immediate) : (MPI_Isend, MPI_Irecv)
DynamicList< char > transferBuf_
Allocated transfer buffer (can be used for send or receive)
const int comm_
The communicator index.