From c031b07735cf0a28bd533d8e83d858f8fc6fed18 Mon Sep 17 00:00:00 2001
From: Patrick Jaap <patrick.jaap@tu-dresden.de>
Date: Wed, 4 Jan 2023 16:06:38 +0100
Subject: [PATCH] Fix energynormtest

---
 dune/solvers/test/energynormtest.cc | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dune/solvers/test/energynormtest.cc b/dune/solvers/test/energynormtest.cc
index f01c76d..7af179a 100644
--- a/dune/solvers/test/energynormtest.cc
+++ b/dune/solvers/test/energynormtest.cc
@@ -145,6 +145,12 @@ struct CustomMultiTypeBlockVector : public Dune::MultiTypeBlockVector<Args...> {
 template<class... Args>
 struct CustomMultiTypeBlockMatrix : public Dune::MultiTypeBlockMatrix<Args...> {
   constexpr static size_t blocklevel = 1; // fake value needed for BCRSMatrix nesting
+
+  // HACK for istl compatibility
+  static constexpr size_t size(){
+    return sizeof...(Args);
+  }
+
   template<class K, typename = std::enable_if_t<Dune::IsNumber<K>::value>>
   void operator*=(K v) { Dune::Hybrid::forEach(*this, [v](auto& b) { b *= v; }); } // allow multiplication by scalar
 };
-- 
GitLab