From 0051348030d3485c6ade1b15c11c07ed00d7b1b9 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 4 Nov 2016 07:40:28 -0600 Subject: [PATCH] Initialize member variables. --- source/lac/solver_control.cc | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/source/lac/solver_control.cc b/source/lac/solver_control.cc index 1977817124..1d9ccf9893 100644 --- a/source/lac/solver_control.cc +++ b/source/lac/solver_control.cc @@ -15,6 +15,7 @@ #include #include +#include #include #include @@ -32,7 +33,9 @@ SolverControl::SolverControl (const unsigned int maxiter, : maxsteps(maxiter), tol(tolerance), - lvalue(1.e300), + lcheck(failure), + initial_val(numbers::signaling_nan()), + lvalue(numbers::signaling_nan()), lstep(0), check_failure(false), relative_failure_residual(0), @@ -220,13 +223,16 @@ ReductionControl::ReductionControl(const unsigned int n, const bool m_log_result) : SolverControl (n, tol, m_log_history, m_log_result), - reduce(red) + reduce(red), + reduced_tol(numbers::signaling_nan()) {} ReductionControl::ReductionControl (const SolverControl &c) : - SolverControl(c) + SolverControl(c), + reduce(numbers::signaling_nan()), + reduced_tol(numbers::signaling_nan()) { set_reduction(0.); } @@ -256,7 +262,7 @@ ReductionControl::check (const unsigned int step, { initial_val = check_value; reduced_tol = check_value * reduce; - }; + } // check whether desired reduction // has been achieved. also check -- 2.39.5