parallel.hh

Go to the documentation of this file.
1 
6 #ifndef basics_parallel_hh
7 #define basics_parallel_hh
8 
9 #include "exceptions.hh"
10 #include <string>
11 
12 namespace concepts{
13  // *********************************************** isParallelRunning *
14 
22 
27  public:
31  NoMPIInit_Error(const std::string& file, const unsigned int line,
32  const std::string& function, const std::string& errorMessage) throw ();
33 
34 
35  virtual const char* what() const throw();
36 
37  virtual ~NoMPIInit_Error() throw () {};
38  protected:
39  virtual std::ostream& info(std::ostream& os) const throw ();
40  private:
41  std::string errorMessage_;
42  mutable std::string outputMessage_ ;
43  };
44 
45 };
46 
47 #endif
std::string outputMessage_
Definition: parallel.hh:42
Exception class to handle MPI::Init() lack of call.
Definition: parallel.hh:26
Base class for exceptions.
Definition: exceptions.hh:86
virtual const char * what() const
bool isParallelRunning()
Tests if the instruction MPI::Init() was called.
std::string errorMessage_
Definition: parallel.hh:41
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
NoMPIInit_Error(const std::string &file, const unsigned int line, const std::string &function, const std::string &errorMessage)
Constructor.
Basic namespace for Concepts-2.
Definition: pml_formula.h:16
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich