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,
UIPstream(const UPstream::commsTypes commsType, const int fromProcNo, DynamicList< char > &receiveBuf, label &receiveBufPosition, const int tag=UPstream::msgType(), const label comm=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.
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 label bufSize=0, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm, IOstreamOption::streamFormat fmt=IOstreamOption::BINARY)
Construct given process index to read from and optional buffer size, read format. ...
commsTypes
Communications types.
Base class for input inter-processor communications stream (ie, parallel streams). Not to be used directly, thus contructors are protected.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const int fromProcNo_
Source rank for the 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.
Inter-processor communications stream.
commsTypes commsType() const noexcept
Get the communications type of the stream.
int debug
Static debugging option.
DynamicList< char > & recvBuf_
Reference to the receive buffer data.
const int tag_
Message tag for communication.
streamFormat
Data format (ascii | binary)
"nonBlocking" (immediate) : (MPI_Isend, MPI_Irecv)
const int comm_
The communicator index.