From fe0af10e08003e22f4ebb93d479bc3b21884b7e8 Mon Sep 17 00:00:00 2001 From: Simon Praetorius <simon.praetorius@tu-dresden.de> Date: Wed, 27 Nov 2024 14:17:15 +0100 Subject: [PATCH] Fix calling invert on zero matrix --- dune/istl/test/matrixtest.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dune/istl/test/matrixtest.cc b/dune/istl/test/matrixtest.cc index b8755d3fe..2cb7a973e 100644 --- a/dune/istl/test/matrixtest.cc +++ b/dune/istl/test/matrixtest.cc @@ -483,6 +483,9 @@ int main() BDMatrix<double> bdMatrix3 = {1.0, 2.0, 3.0}; testSolve<BDMatrix<double>, BlockVector<double> >(bdMatrix3); + // Test whether inversion works + bdMatrix3.invert(); + // test whether resizing works bdMatrix2.setSize(5); bdMatrix2 = 4.0; @@ -490,8 +493,6 @@ int main() y.resize(5); testMatrix(bdMatrix2, x, y); - // Test whether inversion works - bdMatrix2.invert(); } // //////////////////////////////////////////////////////////////////////// -- GitLab