From: Matthias Maier Date: Thu, 29 Mar 2018 21:07:02 +0000 (-0500) Subject: Tests: update petsc_complex/solver_real_02 X-Git-Tag: v9.0.0-rc1~264^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6122%2Fhead;p=dealii.git 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 --- 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