From: Martin Kronbichler Date: Fri, 31 May 2013 11:37:50 +0000 (+0000) Subject: Fix uninitialized memory. X-Git-Tag: v8.0.0~362 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c95f8950e28f8cfe43821c292fa13df42600c411;p=dealii.git Fix uninitialized memory. git-svn-id: https://svn.dealii.org/trunk@29680 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/distributed/tria.h b/deal.II/include/deal.II/distributed/tria.h index b504986449..18a6eed4ca 100644 --- a/deal.II/include/deal.II/distributed/tria.h +++ b/deal.II/include/deal.II/distributed/tria.h @@ -732,6 +732,8 @@ namespace parallel std::vector n_locally_owned_active_cells; unsigned int n_global_active_cells; unsigned int n_global_levels; + + NumberCache(); }; NumberCache number_cache; diff --git a/deal.II/source/distributed/tria.cc b/deal.II/source/distributed/tria.cc index d9b00a61f5..a00309e00e 100644 --- a/deal.II/source/distributed/tria.cc +++ b/deal.II/source/distributed/tria.cc @@ -1897,6 +1897,16 @@ namespace parallel /* ---------------------- class Triangulation ------------------------------ */ + + template + Triangulation::NumberCache::NumberCache() + : + n_global_active_cells(0), + n_global_levels(0) + {} + + + template Triangulation:: Triangulation (MPI_Comm mpi_communicator,