Go to the documentation of this file.
70 Info<<
"Finalising parallel run" <<
endl;
78 void runPar(
int& argc,
char**& argv,
bool needsThread)
82 Info<<
"Failed to start parallel run" <<
endl;
97 return parallel_ && distributed_;
103 distributed_ = (parallel_ ? on :
false);
void distributed(bool on)
Set use of distributed roots.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
~ParRunControl()
Destructor. Shutdown (finalize) MPI as required.
ParRunControl()
Default construct.
Ostream & endl(Ostream &os)
Add newline and flush stream.
messageStream Info
Information stream (uses stdout - output is on the master only)
bool distributed() const
True if this is a parallel run and uses distributed roots.
static void shutdown(int errNo=0)
Shutdown (finalize) MPI as required.
Helper class for initializing parallel jobs from the command arguments. Also handles cleanup of paral...
void runPar(int &argc, char **&argv, bool needsThread)
Initialize Pstream for a parallel run.
bool parRun() const
True if this is parallel run.
static bool init(int &argc, char **&argv, const bool needsThread)
Initialisation function called from main.
static void exit(int errNo=1)
Shutdown (finalize) MPI as required and exit program with errNo.