33bool Foam::UOPBstream::bufferIPCsend()
49 <<
"Broadcast failure sending buffer size:"
50 << label(count) <<
" comm:" <<
comm_ <<
nl
70 <<
"Broadcast failure sending buffer data:"
static void send(Foam::zero, int communicator, int root=0)
Broadcast a zero value (buffer) size that can be matched by the UIPBstream constructor.
DynamicList< char > & sendBuf_
Reference to the send buffer data.
const int toProcNo_
Destination rank for the data.
const int comm_
The communicator index.
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.
static bool is_parallel(const label communicator=worldComm)
True if parallel algorithm or exchange is required.
@ 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.
void checkCommunicator(int comm, int rank)
Fatal if communicator is outside the allocated range.
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).