35 bool Foam::UOPBstream::bufferIPCsend()
52 reinterpret_cast<char*>(&bufSize),
60 <<
"MPI_Bcast failure sending buffer size:" << bufSize <<
nl 81 <<
"MPI_Bcast failure sending buffer data:" << bufSize <<
nl 95 const commsTypes commsType,
98 const std::streamsize bufSize,
109 <<
"MPI_Bcast failure sending buffer data:" << label(bufSize) <<
nl 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)
T * data() noexcept
Return pointer to the underlying array serving as data storage.
void checkCommunicator(const label comm, const label toProcNo)
Fatal if comm is outside the allocated range.
DynamicList< char > & sendBuf_
errorManip< error > abort(error &err)
static bool write(const commsTypes commsType, const int rootProcNo, const char *buf, const std::streamsize bufSize, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm)
Wrapped version of UPstream::broadcast with const-cast.
static bool broadcast(char *buf, const std::streamsize bufSize, const label communicator=worldComm, const int rootProcNo=masterNo())
Broadcast buffer contents to all processes in communicator. The sizes must match on all processes...