From c1409b1db186c1eff4e46061a570f8e92128604c Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sun, 18 Jun 2017 17:16:42 +0200 Subject: [PATCH] Fix uninitialized member variables in DoFInfo --- include/deal.II/meshworker/dof_info.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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) : -- 2.39.5