34void Foam::UIPBstream::bufferIPCrecv()
47 <<
"Broadcast failure receiving buffer size" <<
nl
63 Perr<<
"UIPBstream IPC read buffer :"
65 <<
" probed size:" << label(count)
66 <<
" wanted size:" <<
recvBuf_.capacity()
73 if (
recvBuf_.capacity() < label(count))
75 recvBuf_.setCapacity_nocopy(label(count));
77 recvBuf_.resize_nocopy(label(count));
98 <<
"Broadcast failure receiving buffer data:"
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
void setEof() noexcept
Set stream state as reached 'eof'.
const int comm_
The communicator index.
label messageSize_
The message size, read on bufferIPCrecv or set directly.
DynamicList< char > & recvBuf_
Reference to the receive buffer data.
static bool mpi_broadcast(void *buf, std::streamsize count, const UPstream::dataTypes dataTypeId, const int communicator, const int root=0)
Broadcast buffer contents to all ranks (default: from rank=0). The sizes must match on all processes.
@ type_byte
byte, char, unsigned char, ...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
bool broadcast_int64(int64_t &value, int comm, int root=0)
Broadcast a single int64 value.
prefixOSstream Perr
OSstream wrapped stderr (std::cerr) with parallel prefix.
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
constexpr char nl
The newline '\n' character (0x0a).
#define FOAM_UNLIKELY(cond)