From 8f571059ae6de380ea81df7cf5fe83a145ef12a1 Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Mon, 6 Apr 2009 20:55:32 +0000 Subject: [PATCH] moved to new module dune-solvers [[Imported from SVN: r2361]] --- dune-solvers/numproc.hh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 dune-solvers/numproc.hh diff --git a/dune-solvers/numproc.hh b/dune-solvers/numproc.hh new file mode 100644 index 00000000..05c02a85 --- /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 -- GitLab