37 const std::streamsize bufSize,
52 Pout<<
"UPstream::broadcast : root:" << rootProcNo
54 <<
" size:" << label(bufSize)
59 Pout<<
"UPstream::broadcast : root:" << rootProcNo
61 <<
" size:" << label(bufSize)
69 const int returnCode = MPI_Bcast
80 return (returnCode == MPI_SUCCESS);
DynamicList< MPI_Comm > MPICommunicators_
Ostream & endl(Ostream &os)
Add newline and flush stream.
static bool is_parallel(const label communicator=worldComm)
True if parallel algorithm or exchange is required.
static label warnComm
Debugging: warn for use of any communicator differing from warnComm.
static void beginTiming()
Update timer prior to measurement.
int debug
Static debugging option.
static void addBroadcastTime()
Add time increment to broadcast time.
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...
static void printStack(Ostream &os, int size=-1)
Helper function to print a stack, with optional upper limit.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.