From: Daniel Arndt Date: Sun, 18 Jun 2017 15:16:42 +0000 (+0200) Subject: Fix uninitialized member variables in DoFInfo X-Git-Tag: v9.0.0-rc1~1495^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4523%2Fhead;p=dealii.git Fix uninitialized member variables in DoFInfo --- diff --git a/include/deal.II/meshworker/dof_info.h b/include/deal.II/meshworker/dof_info.h index 3de939b51b..3e62ea3515 100644 --- a/include/deal.II/meshworker/dof_info.h +++ b/include/deal.II/meshworker/dof_info.h @@ -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 + DoFInfo::DoFInfo() + : + face_number(numbers::invalid_unsigned_int), + sub_number(numbers::invalid_unsigned_int), + level_cell(false) + {} + + + template DoFInfo::DoFInfo(const DoFHandler &dof_handler) :