From b97a9025529d5b474da9423e446b5c8d8c1cbaac Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth <bangerth@colostate.edu> Date: Mon, 7 Nov 2016 09:57:22 -0700 Subject: [PATCH] Initialize all member variables. --- .../algorithms/theta_timestepping.templates.h | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) 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> -- 2.39.5