From 8dd58d72098c8f647a63c600aab5a136ba4087e3 Mon Sep 17 00:00:00 2001 From: Jonathan Youett <youett@math.fu-berlin.de> Date: Mon, 9 Oct 2017 17:17:01 +0200 Subject: [PATCH] Add methods to check the status of the verbosity mode --- dune/solvers/common/numproc.hh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dune/solvers/common/numproc.hh b/dune/solvers/common/numproc.hh index d6fdcb3..f32be12 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_; -- GitLab