]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fixed history in ReductionControl::check() for final iteration
authorjodlbauer <jdschule@gmx.at>
Wed, 29 Nov 2017 11:49:07 +0000 (12:49 +0100)
committerjodlbauer <jdschule@gmx.at>
Wed, 29 Nov 2017 11:49:07 +0000 (12:49 +0100)
source/lac/solver_control.cc

index 7ced6c6bdfd840ad12f4ae2f4c12b1d848c01742..1c39afaf2de0e8b9c53a9ec0c6bb535d1e999539 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.