From e33d643fbba47a524ca2608a340f1ea4441f864f Mon Sep 17 00:00:00 2001 From: jodlbauer Date: Wed, 29 Nov 2017 12:49:07 +0100 Subject: [PATCH] fixed history in ReductionControl::check() for final iteration --- source/lac/solver_control.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.5