diff --git a/dune-solvers/numproc.hh b/dune-solvers/numproc.hh new file mode 100644 index 0000000000000000000000000000000000000000..05c02a85601ee0abdfd59d645daff22fbb1aa181 --- /dev/null +++ b/dune-solvers/numproc.hh @@ -0,0 +1,28 @@ +#ifndef DUNE_NUMPROC_HH +#define DUNE_NUMPROC_HH + +#include <dune/common/exceptions.hh> + +/** \brief Exception thrown by solvers */ +class SolverError : public Dune::Exception {}; + + /** \brief Base class for numerical procedures */ + class NumProc + { + public: + + /** \brief Different levels of verbosity */ + enum VerbosityMode {QUIET, REDUCED, FULL}; + + NumProc() : verbosity_(FULL) {} + + NumProc(VerbosityMode verbosity) + : verbosity_(verbosity) + {} + + /** \brief Controls the amount of screen output of a numproc */ + VerbosityMode verbosity_; + + }; + +#endif