diff --git a/dune/solvers/common/numproc.hh b/dune/solvers/common/numproc.hh index d6fdcb31ff6e2966988077462c21f3170802448b..f32be12193dfd631294ebb2acb57c6c685563bde 100644 --- a/dune/solvers/common/numproc.hh +++ b/dune/solvers/common/numproc.hh @@ -38,6 +38,15 @@ class SolverError : public Dune::Exception {}; /** \brief Get the verbosity level */ const VerbosityMode& getVerbosity() const {return verbosity_;} + /** \brief Check if verbosity is quiet. */ + bool isQuiet() const { return verbosity_ == QUIET; } + + /** \brief Check if verbosity is reduced. */ + bool isReduced() const { return verbosity_ == REDUCED; } + + /** \brief Check if verbosity is full. */ + bool isFull() const { return verbosity_ == FULL; } + protected: /** \brief Controls the amount of screen output of a numproc */ VerbosityMode verbosity_;