]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Initialize all member variables. 3492/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 7 Nov 2016 16:57:22 +0000 (09:57 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 7 Nov 2016 16:57:22 +0000 (09:57 -0700)
include/deal.II/algorithms/theta_timestepping.templates.h

index 40e19a1820e3919482f0443e65b8c755a52b96d9..99b5b00bcda74d598767dc5ff1c06f43f6cc0e8f 100644 (file)
@@ -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>

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.