From 965bbada1c15d4211ee211a14c9ec4609c1cdae6 Mon Sep 17 00:00:00 2001
From: Oliver Sander <oliver.sander@tu-dresden.de>
Date: Sat, 10 Feb 2024 17:02:39 +0100
Subject: [PATCH] Test printSparseMatrix with inner type ScaledIdentityMatrix

No fixes necessary.
---
 dune/istl/test/iotest.cc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dune/istl/test/iotest.cc b/dune/istl/test/iotest.cc
index 92e1da042..a1a12fcf8 100644
--- a/dune/istl/test/iotest.cc
+++ b/dune/istl/test/iotest.cc
@@ -103,6 +103,11 @@ int main(int argc, char** argv)
     Dune::printmatrix(std::cout, matrix, "BCRSMatrix<FieldMatrix<double,1,1> >", "--");
     Dune::printSparseMatrix(std::cout, matrix, "BCRSMatrix<FieldMatrix<double,1,1> >", "--");
   }
+  {
+    Dune::BCRSMatrix<Dune::ScaledIdentityMatrix<double,1> > matrix;
+    setupLaplacian(matrix, 3);
+    Dune::printSparseMatrix(std::cout, matrix, "BCRSMatrix<ScaledIdentityMatrix<double,1> >", "--");
+  }
   {
     Dune::BCRSMatrix<Dune::FieldMatrix<double,2,3> > matrix;
     setupLaplacian(matrix, 3);
-- 
GitLab