From 4521f5789d3f692231eba8fbb9f1038f55b6d27b Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Sat, 31 Mar 2018 11:30:38 -0500 Subject: [PATCH] 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). --- tests/petsc/solver_02.cc | 2 +- tests/petsc/solver_02.output | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5