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
DynamicList< MPI_Comm > MPICommunicators_
Ostream & endl(Ostream &os)
Add newline and flush stream.
static bool & parRun() noexcept
Test if this a parallel run.
static label nProcs(const label communicator=worldComm)
Number of ranks in parallel run (for given communicator) is 1 for serial run.
static void printStack(Ostream &os)
Helper function to print a stack.
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=worldComm, const int rootProcNo=masterNo())
Broadcast buffer contents to all processes in communicator. The sizes must match on all processes...
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.