From: Vladimir Ivannikov Date: Mon, 5 Dec 2022 10:20:26 +0000 (+0100) Subject: Clear history for a new step X-Git-Tag: v9.5.0-rc1~759^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0d685c23b9d2293b521d3c66135da13982fc936;p=dealii.git Clear history for a new step --- diff --git a/source/lac/solver_control.cc b/source/lac/solver_control.cc index 8c13529801..f5a0d9eb40 100644 --- a/source/lac/solver_control.cc +++ b/source/lac/solver_control.cc @@ -57,6 +57,9 @@ SolverControl::check(const unsigned int step, const double check_value) if (step == 0) { initial_val = check_value; + + if (history_data_enabled) + history_data.clear(); } if (m_log_history && ((step % m_log_frequency) == 0)) @@ -264,6 +267,9 @@ ReductionControl::check(const unsigned int step, const double check_value) { initial_val = check_value; reduced_tol = check_value * reduce; + + if (history_data_enabled) + history_data.clear(); } // check whether desired reduction