From c82ca486540d472b3a8953d2be897ce10f88908d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Carsten=20Gr=C3=A4ser?= <graeser@dune-project.org>
Date: Wed, 22 Sep 2021 21:34:13 +0200
Subject: [PATCH] Fix row and col size in MatrixBuilder<MultiTypeMatrix<...>>

Row and col size heb been swapped before leading to incorrect results
for non-square outer matrix pattern.
---
 dune/fufem/assemblers/istlbackend.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dune/fufem/assemblers/istlbackend.hh b/dune/fufem/assemblers/istlbackend.hh
index bffe79f0..eb114b63 100644
--- a/dune/fufem/assemblers/istlbackend.hh
+++ b/dune/fufem/assemblers/istlbackend.hh
@@ -184,7 +184,7 @@ private:
   //! number of multi type cols (we assume the matrix is well-formed)
   static constexpr size_t colBlocks_ = Matrix::M();
   //! 2D array of IndexSets
-  std::array<std::array<Dune::MatrixIndexSet,rowBlocks_>,colBlocks_> indices_;
+  std::array<std::array<Dune::MatrixIndexSet,colBlocks_>,rowBlocks_> indices_;
   Matrix& matrix_;
 };
 
-- 
GitLab