From 44ffb9ee244d9799041e3802bedc95db3cd34eb6 Mon Sep 17 00:00:00 2001 From: Christian Engwer <christi@dune-project.org> Date: Fri, 25 Jan 2019 16:51:02 +0100 Subject: [PATCH] [amg] the default constructor for Hierarchy did not initialize levels_ --- dune/istl/paamg/hierarchy.hh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dune/istl/paamg/hierarchy.hh b/dune/istl/paamg/hierarchy.hh index c705aedd9..f113d0043 100644 --- a/dune/istl/paamg/hierarchy.hh +++ b/dune/istl/paamg/hierarchy.hh @@ -110,12 +110,17 @@ namespace Dune */ Hierarchy(const std::shared_ptr<MemberType> & first); - Hierarchy() = default; + /** + * @brief Construct an empty hierarchy. + */ + Hierarchy() : levels_(0) + {} /** * @brief Copy constructor (deep copy!). */ Hierarchy(const Hierarchy& other); + /** * @brief Add an element on a coarser level. * @param args The arguments needed for the construction. -- GitLab