From 7df57371752dbb4ba244beb6a4da695a80ff7141 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Thu, 29 Mar 2018 16:07:02 -0500 Subject: [PATCH] Tests: update petsc_complex/solver_real_02 Make this test a bit more stable to avoid a floating point exception, see pull request #6120 Set number of allowed iterations to the same value that is use in petsc/solver_02 --- tests/petsc_complex/solver_real_02.cc | 4 ++-- tests/petsc_complex/solver_real_02.output | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/petsc_complex/solver_real_02.cc b/tests/petsc_complex/solver_real_02.cc index 85150067ce..5924ba4404 100644 --- a/tests/petsc_complex/solver_real_02.cc +++ b/tests/petsc_complex/solver_real_02.cc @@ -55,13 +55,13 @@ int main(int argc, char **argv) // Chebychev is a tricky smoother for the kind of FD matrix we use in // this test. So, simply test that we're able to reduce the residual to // a reasonably small value of 1.e-3. - SolverControl control(2500, 1.e-3); + SolverControl control(2500, 1.5e-3); PETScWrappers::SolverChebychev solver(control); PETScWrappers::PreconditionJacobi preconditioner(A); check_solver_within_range( solver.solve(A,u,f, preconditioner), - control.last_step(), 1120, 1125); + control.last_step(), 1120, 1141); } } diff --git a/tests/petsc_complex/solver_real_02.output b/tests/petsc_complex/solver_real_02.output index 8e5ffc6089..ebc88af9f1 100644 --- a/tests/petsc_complex/solver_real_02.output +++ b/tests/petsc_complex/solver_real_02.output @@ -1,3 +1,3 @@ DEAL::Size 32 Unknowns 961 -DEAL::Solver stopped within 1120 - 1125 iterations +DEAL::Solver stopped within 1120 - 1141 iterations -- 2.39.5