From: Wolfgang Bangerth Date: Fri, 4 Nov 2016 13:40:28 +0000 (-0600) Subject: Initialize member variables. X-Git-Tag: v8.5.0-rc1~479^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0051348030d3485c6ade1b15c11c07ed00d7b1b9;p=dealii.git Initialize member variables. --- 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