From: Matthias Maier Date: Sat, 31 Mar 2018 16:30:38 +0000 (-0500) Subject: petsc/solver_02: Make range more forgiving X-Git-Tag: v9.0.0-rc1~260^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6130%2Fhead;p=dealii.git petsc/solver_02: Make range more forgiving Depending on the PETSc version the solver takes roughly between 1069 and 1141 cycles. Just check for a genereous number of cycles (between 1050 and 1150). --- diff --git a/tests/petsc/solver_02.cc b/tests/petsc/solver_02.cc index 4762f5cb82..e954c5aa3b 100644 --- a/tests/petsc/solver_02.cc +++ b/tests/petsc/solver_02.cc @@ -61,6 +61,6 @@ int main(int argc, char **argv) check_solver_within_range( solver.solve(A,u,f, preconditioner), - control.last_step(), 1120, 1141); + control.last_step(), 1050, 1150); } } diff --git a/tests/petsc/solver_02.output b/tests/petsc/solver_02.output index ebc88af9f1..bd1cb4b43a 100644 --- a/tests/petsc/solver_02.output +++ b/tests/petsc/solver_02.output @@ -1,3 +1,3 @@ DEAL::Size 32 Unknowns 961 -DEAL::Solver stopped within 1120 - 1141 iterations +DEAL::Solver stopped within 1050 - 1150 iterations