39 const std::streamsize bufSize,
54 Pout<<
"UPstream::broadcast : root:" << rootProcNo
56 <<
" size:" << label(bufSize)
61 Pout<<
"UPstream::broadcast : root:" << rootProcNo
63 <<
" size:" << label(bufSize)
71 bool failed = MPI_Bcast
label nProcs() const noexcept
Number of ranks associated with PstreamBuffers.
static label warnComm
Debugging: warn for use of any communicator differing from warnComm.
static bool broadcast(char *buf, const std::streamsize bufSize, const label communicator=worldComm, const int rootProcNo=masterNo())
static bool & parRun() noexcept
Test if this a parallel run.
static void printStack(Ostream &os)
Helper function to print a stack.
static void addBroadcastTime()
Add time increment to broadcastTime.
static void beginTiming()
Update timer prior to measurement.
DynamicList< MPI_Comm > MPICommunicators_
Ostream & endl(Ostream &os)
Add newline and flush stream.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.