From cd51fb7846c73c85e76b4e7677e1f3874e0e490e Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Wed, 17 Dec 2014 01:58:28 +0100 Subject: [PATCH] try to get the arpack test a bit more stable Well, it turns out that depending on arpack version and CPU the result for the first 5 eigenvalues differs. Try to make this a bit more stable by computing 8 eigenvalues and only print the first 5. --- tests/arpack/step-36_ar.cc | 15 +++++---------- tests/arpack/step-36_ar.output | 4 ++-- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/tests/arpack/step-36_ar.cc b/tests/arpack/step-36_ar.cc index 1b429a8cdd..f84ebdc432 100644 --- a/tests/arpack/step-36_ar.cc +++ b/tests/arpack/step-36_ar.cc @@ -114,8 +114,7 @@ namespace Step36 stiffness_matrix.reinit (sparsity_pattern); mass_matrix.reinit (sparsity_pattern); - eigenfunctions - .resize (5); + eigenfunctions.resize (8); for (unsigned int i=0; i problem (""); - problem.run (); - } + EigenvalueProblem<2> problem (""); + problem.run (); } catch (std::exception &exc) diff --git a/tests/arpack/step-36_ar.output b/tests/arpack/step-36_ar.output index 25856436f7..684685d6fb 100644 --- a/tests/arpack/step-36_ar.output +++ b/tests/arpack/step-36_ar.output @@ -1,6 +1,6 @@ DEAL:: Eigenvalue 0 : (4.93877,0.00000) DEAL:: Eigenvalue 1 : (12.3707,0.00000) -DEAL:: Eigenvalue 2 : (19.8027,0.00000) -DEAL:: Eigenvalue 3 : (24.8370,0.00000) +DEAL:: Eigenvalue 2 : (12.3707,0.00000) +DEAL:: Eigenvalue 3 : (19.8027,0.00000) DEAL:: Eigenvalue 4 : (24.8370,0.00000) -- 2.39.5