]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Tests: update petsc_complex/solver_real_02 6122/head
authorMatthias Maier <tamiko@43-1.org>
Thu, 29 Mar 2018 21:07:02 +0000 (16:07 -0500)
committerMatthias Maier <tamiko@43-1.org>
Thu, 29 Mar 2018 21:07:02 +0000 (16:07 -0500)
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
tests/petsc_complex/solver_real_02.output

index 85150067cec2925896baf72c6a15a5c80cff9ff3..5924ba4404aac106c4d9431b4319152d5caad4bc 100644 (file)
@@ -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);
   }
 }
index 8e5ffc60890ccf502e3b24fcb8a223ec952eda33..ebc88af9f1aedf38df6b9958490d183604f700f1 100644 (file)
@@ -1,3 +1,3 @@
 
 DEAL::Size 32 Unknowns 961
-DEAL::Solver stopped within 1120 - 1125 iterations
+DEAL::Solver stopped within 1120 - 1141 iterations

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.