From: Wolfgang Bangerth <bangerth@colostate.edu> Date: Mon, 7 Nov 2016 16:57:22 +0000 (-0700) Subject: Initialize all member variables. X-Git-Tag: v8.5.0-rc1~437^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3492%2Fhead;p=dealii.git Initialize all member variables. --- diff --git a/include/deal.II/algorithms/theta_timestepping.templates.h b/include/deal.II/algorithms/theta_timestepping.templates.h index 40e19a1820..99b5b00bcd 100644 --- a/include/deal.II/algorithms/theta_timestepping.templates.h +++ b/include/deal.II/algorithms/theta_timestepping.templates.h @@ -17,6 +17,7 @@ #include <deal.II/algorithms/theta_timestepping.h> #include <deal.II/base/parameter_handler.h> +#include <deal.II/base/signaling_nan.h> #include <deal.II/lac/vector_memory.h> DEAL_II_NAMESPACE_OPEN @@ -24,9 +25,20 @@ DEAL_II_NAMESPACE_OPEN namespace Algorithms { template <typename VectorType> - ThetaTimestepping<VectorType>::ThetaTimestepping (OperatorBase &e, OperatorBase &i) - : vtheta(0.5), adaptive(false), op_explicit(&e), op_implicit(&i) - {} + ThetaTimestepping<VectorType>::ThetaTimestepping (OperatorBase &e, + OperatorBase &i) + : + vtheta(0.5), + adaptive(false), + op_explicit(&e), + op_implicit(&i) + { + d_explicit.step = numbers::signaling_nan<double>(); + d_explicit.time = numbers::signaling_nan<double>(); + + d_implicit.step = numbers::signaling_nan<double>(); + d_implicit.time = numbers::signaling_nan<double>(); + } template <typename VectorType>