From cecdc8a6301a67ebafd0b6ea23240ae5279dcf6a Mon Sep 17 00:00:00 2001 From: Ralf Hartmann Date: Thu, 8 Mar 2001 17:26:01 +0000 Subject: [PATCH] New log_history function for read-only access to _log_history. git-svn-id: https://svn.dealii.org/trunk@4175 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/solver_control.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/deal.II/lac/include/lac/solver_control.h b/deal.II/lac/include/lac/solver_control.h index dc6b0b33d8..648d8fef70 100644 --- a/deal.II/lac/include/lac/solver_control.h +++ b/deal.II/lac/include/lac/solver_control.h @@ -209,6 +209,11 @@ class SolverControl : public Subscriptor * steps. */ void log_history (const bool); + + /** + * Returns the log_history flag. + */ + bool log_history () const; /** * Set logging frequency. @@ -439,6 +444,13 @@ SolverControl::log_history (bool newval) } +inline bool +SolverControl::log_history () const +{ + return _log_history; +} + + inline void SolverControl::log_result (bool newval) -- 2.39.5