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),
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.
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.
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...
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.