From 4a20c1e0b4e43a8206df8b342bde302d284fc0db Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dennis=20Gl=C3=A4ser?= <dennis.glaeser@iws.uni-stuttgart.de>
Date: Mon, 17 Dec 2018 09:51:27 +0100
Subject: [PATCH] [ex-fractures][solution] use correct call to problem()

---
 exercises/solution/exercise-fractures/matrixproblem.hh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/exercises/solution/exercise-fractures/matrixproblem.hh b/exercises/solution/exercise-fractures/matrixproblem.hh
index 9eff129b..0c91909a 100644
--- a/exercises/solution/exercise-fractures/matrixproblem.hh
+++ b/exercises/solution/exercise-fractures/matrixproblem.hh
@@ -198,8 +198,8 @@ public:
             // we need to obtain the domain marker of the fracture element that is coupled to this face
             // therefore we first get the fracture problem from the coupling manager. For this test, we
             // know that the fracture domain id is 1 (see main file)
-            static constexpr std::size_t fractureDomainId = 1;
-            const auto& fractureProblem = couplingManager().template problem<fractureDomainId>();
+            static constexpr auto fractureDomainId = Dune::index_constant<1>();
+            const auto& fractureProblem = couplingManager().problem(fractureDomainId);
 
             // use helper function in coupling manager to obtain the element this face couples to
             const auto fractureElement = couplingManager().getLowDimElement(element, scvf);
-- 
GitLab