34 void Foam::UIPBstream::bufferIPCrecv()
42 std::streamsize bufSize(0);
49 reinterpret_cast<char*>(&bufSize),
50 sizeof(std::streamsize),
57 <<
"MPI_Bcast failure receiving buffer size" <<
nl 63 Perr<<
"UOPBstream IPC read buffer :" 66 <<
" probed size:" << label(bufSize)
99 <<
"MPI_Bcast failure receiving buffer data:" 115 const int rootProcNo,
117 const std::streamsize bufSize,
127 <<
"MPI_Bcast failure receiving data:" << label(bufSize) <<
nl prefixOSstream Perr
OSstream wrapped stderr (std::cerr) with parallel prefix.
void size(const label n)
Older name for setAddressableSize.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
constexpr char nl
The newline '\n' character (0x0a)
bool empty() const noexcept
True if List is empty (ie, size() is zero)
T * data() noexcept
Return pointer to the underlying array serving as data storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const int fromProcNo_
Source rank for the data.
label capacity() const noexcept
Size of the underlying storage.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
label messageSize_
The message size, read on bufferIPCrecv or set directly.
static std::streamsize read(const int rootProcNo, char *buf, const std::streamsize bufSize, const label comm=UPstream::worldComm)
Wrapped version of UPstream::broadcast.
errorManip< error > abort(error &err)
int debug
Static debugging option.
void clear() noexcept
Clear the addressed list, i.e. set the size to zero.
DynamicList< char > & recvBuf_
Reference to the receive buffer data.
static bool broadcast(char *buf, const std::streamsize bufSize, const label communicator, const int rootProcNo=masterNo())
Broadcast buffer contents to all processes in given communicator. The sizes must match on all process...
void resize_nocopy(const label len)
Alter addressable list size, allocating new space if required without necessarily recovering old cont...
void setEof() noexcept
Set stream state as reached 'eof'.
void setCapacity_nocopy(const label len)
Alter the size of the underlying storage, without retaining old content.
const int comm_
The communicator index.