]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix uninitialized memory.
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 31 May 2013 11:37:50 +0000 (11:37 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 31 May 2013 11:37:50 +0000 (11:37 +0000)
git-svn-id: https://svn.dealii.org/trunk@29680 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/distributed/tria.h
deal.II/source/distributed/tria.cc

index b50498644958e9e87639b5a9b425a256f1551dbd..18a6eed4caad864b569ea9b3fb680d5249ea8726 100644 (file)
@@ -732,6 +732,8 @@ namespace parallel
         std::vector<unsigned int> n_locally_owned_active_cells;
         unsigned int              n_global_active_cells;
         unsigned int              n_global_levels;
+
+        NumberCache();
       };
 
       NumberCache number_cache;
index d9b00a61f50bf36bde2e9897cc538be1f5d0927b..a00309e00e0e12412c599be538cef5ff1a8d87d4 100644 (file)
@@ -1897,6 +1897,16 @@ namespace parallel
     /* ---------------------- class Triangulation<dim,spacedim> ------------------------------ */
 
 
+
+    template <int dim, int spacedim>
+    Triangulation<dim,spacedim>::NumberCache::NumberCache()
+      :
+      n_global_active_cells(0),
+      n_global_levels(0)
+    {}
+
+
+
     template <int dim, int spacedim>
     Triangulation<dim,spacedim>::
     Triangulation (MPI_Comm mpi_communicator,

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.