33 bool Foam::UOPBstream::bufferIPCsend()
50 reinterpret_cast<char*>(&bufSize),
58 <<
"MPI_Bcast failure sending buffer size:" << bufSize <<
nl 79 <<
"MPI_Bcast failure sending buffer data:" << bufSize <<
nl 95 const std::streamsize bufSize,
105 <<
"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.
const int comm_
The communicator index.
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.
static bool write(const int rootProcNo, const char *buf, const std::streamsize bufSize, const label comm=UPstream::worldComm)
Wrapped version of UPstream::broadcast with const-cast.
const int toProcNo_
Destination rank for the data.
DynamicList< char > & sendBuf_
Reference to the send buffer data.
errorManip< error > abort(error &err)
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...