Go to the documentation of this file.
72 Info<<
"Finalising parallel run" <<
endl;
81 void runPar(
int& argc,
char**& argv,
bool needsThread)
87 Info<<
"Failed to start parallel run" <<
endl;
101 return parallel_ && distributed_;
107 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, triggers Pstream::exit.
ParRunControl()
Construct null.
static void exit(int errnum=1)
Exit program.
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.
Helper class for initializing parallel jobs from the command arguments.
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.