From: jodlbauer Date: Wed, 29 Nov 2017 11:49:07 +0000 (+0100) Subject: fixed history in ReductionControl::check() for final iteration X-Git-Tag: v9.0.0-rc1~710^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e33d643fbba47a524ca2608a340f1ea4441f864f;p=dealii.git fixed history in ReductionControl::check() for final iteration --- diff --git a/source/lac/solver_control.cc b/source/lac/solver_control.cc index 7ced6c6bdf..1c39afaf2d 100644 --- a/source/lac/solver_control.cc +++ b/source/lac/solver_control.cc @@ -279,8 +279,11 @@ ReductionControl::check (const unsigned int step, << " value " << check_value << std::endl; lstep = step; lvalue = check_value; - lcheck = success; + + if (history_data_enabled) + history_data.push_back(check_value); + return success; } else