]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix uninitialized member variables in DoFInfo 4523/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 18 Jun 2017 15:16:42 +0000 (17:16 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 18 Jun 2017 15:16:42 +0000 (17:16 +0200)
include/deal.II/meshworker/dof_info.h

index 3de939b51b9a5ba087d6abcd94c82ec33b8710a1..3e62ea35156ad45ca88bea823fdf600a6adee172 100644 (file)
@@ -171,7 +171,7 @@ namespace MeshWorker
      * constructor is not recommended, but it is needed for the arrays in
      * DoFInfoBox.
      */
-    DoFInfo () = default;
+    DoFInfo ();
 
     /// Set up local block indices
     void set_block_indices ();
@@ -272,6 +272,16 @@ namespace MeshWorker
 
 //----------------------------------------------------------------------//
 
+  template <int dim, int spacedim, typename number>
+  DoFInfo<dim, spacedim, number>::DoFInfo()
+    :
+    face_number(numbers::invalid_unsigned_int),
+    sub_number(numbers::invalid_unsigned_int),
+    level_cell(false)
+  {}
+
+
+
   template <int dim, int spacedim, typename number>
   DoFInfo<dim,spacedim,number>::DoFInfo(const DoFHandler<dim,spacedim> &dof_handler)
     :

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.