From 497428e19905d6f762df38ca4ff1d76e9ccf70e6 Mon Sep 17 00:00:00 2001 From: kronbichler Date: Mon, 12 May 2014 19:35:36 +0000 Subject: [PATCH] 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 --- tests/lac/gmres_eigenvalues.cc | 25 +++++++++++++++++++++---- tests/lac/gmres_eigenvalues.output | 7 ++++--- 2 files changed, 25 insertions(+), 7 deletions(-) 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