From b97a9025529d5b474da9423e446b5c8d8c1cbaac Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth 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 #include +#include #include DEAL_II_NAMESPACE_OPEN @@ -24,9 +25,20 @@ DEAL_II_NAMESPACE_OPEN namespace Algorithms { template - ThetaTimestepping::ThetaTimestepping (OperatorBase &e, OperatorBase &i) - : vtheta(0.5), adaptive(false), op_explicit(&e), op_implicit(&i) - {} + ThetaTimestepping::ThetaTimestepping (OperatorBase &e, + OperatorBase &i) + : + vtheta(0.5), + adaptive(false), + op_explicit(&e), + op_implicit(&i) + { + d_explicit.step = numbers::signaling_nan(); + d_explicit.time = numbers::signaling_nan(); + + d_implicit.step = numbers::signaling_nan(); + d_implicit.time = numbers::signaling_nan(); + } template -- 2.39.5