From: Martin Kronbichler Date: Mon, 12 May 2014 19:35:36 +0000 (+0000) Subject: Reduce size of matrix with non-real eigenvalues to avoid trouble with roundoff. X-Git-Tag: v8.2.0-rc1~506 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02ad16437d45aa16ed87af4d621179f0ac4999da;p=dealii.git Reduce size of matrix with non-real eigenvalues to avoid trouble with roundoff. git-svn-id: https://svn.dealii.org/trunk@32899 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/lac/gmres_eigenvalues.cc b/tests/lac/gmres_eigenvalues.cc index 688190fdf4..94ff53077d 100644 --- a/tests/lac/gmres_eigenvalues.cc +++ b/tests/lac/gmres_eigenvalues.cc @@ -19,7 +19,7 @@ #include "../tests.h" #include -#include +#include #include #include @@ -28,11 +28,11 @@ template void test (unsigned int variant) { - const unsigned int n = 64; + const unsigned int n = variant < 3 ? 64 : 16; Vector rhs(n), sol(n); rhs = 1.; - FullMatrix matrix(n, n); + LAPACKFullMatrix matrix(n, n); // put diagonal entries of different strengths. these are very challenging // for GMRES and will usually take a lot of iterations until the Krylov @@ -53,7 +53,9 @@ void test (unsigned int variant) if (i > eigenvalues(n); + for (unsigned int i=0; i