From ac375e2b4b90cd8cb201907866cd8482233003ec Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@dune-project.org>
Date: Mon, 14 Feb 2011 14:20:07 +0000
Subject: [PATCH] don't divide by zero

[[Imported from SVN: r1452]]
---
 dune/istl/test/matrixtest.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dune/istl/test/matrixtest.cc b/dune/istl/test/matrixtest.cc
index 3413e9be5..28e31847f 100644
--- a/dune/istl/test/matrixtest.cc
+++ b/dune/istl/test/matrixtest.cc
@@ -288,7 +288,7 @@ int main()
   Matrix<FieldMatrix<double,1,1> > matrixScalar(10,10);
   for (int i=0; i<10; i++)
     for (int j=0; j<10; j++)
-      matrixScalar[i][j] = (i+j)/((double)(i*j));        // just anything
+      matrixScalar[i][j] = (i+j)/((double)(i*j+1));        // just anything
 
   testSuperMatrix(matrixScalar);
 
@@ -301,7 +301,7 @@ int main()
     for (int j=0; j<10; j++)
       for (int k=0; k<3; k++)
         for (int l=0; l<3; l++)
-          matrix[i][j][k][l] = (i+j)/((double)(k*l));            // just anything
+          matrix[i][j][k][l] = (i+j)/((double)(k*l+1));            // just anything
 
   testSuperMatrix(matrix);
 
-- 
GitLab