44 reinterpret_cast<char*>(&value),
67 template<
class Type,
class... Args>
static bool & parRun() noexcept
Test if this a parallel run.
static void broadcast(Type &value, const label comm=UPstream::worldComm)
Broadcast content (contiguous or non-contiguous) to all processes in communicator.
static label nProcs(const label communicator=worldComm)
Number of ranks in parallel run (for given communicator) is 1 for serial run.
static constexpr int masterNo() noexcept
Process index of the master (always 0)
void inputLoop(IS &)
Termination for input looping (no-op)
OBJstream os(runTime.globalPath()/outputName)
static void broadcasts(const label comm, Type &arg1, Args &&... args)
Broadcast multiple items to all processes in communicator.
Input inter-processor communications stream using MPI broadcast.
A template class to specify that a data type can be considered as being contiguous in memory...
static bool master(const label communicator=worldComm)
Am I the master rank.
Output inter-processor communications stream using MPI broadcast.
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...
Foam::argList args(argc, argv)
void outputLoop(OS &)
Termination for output looping (no-op)