]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Test numerics/nonlinear_solver_selector_03: use check_solver_within_range macro
authorMatthias Maier <maier@tamu.edu>
Fri, 23 Jun 2023 05:16:20 +0000 (00:16 -0500)
committerMatthias Maier <maier@tamu.edu>
Fri, 23 Jun 2023 05:16:20 +0000 (00:16 -0500)
tests/numerics/nonlinear_solver_selector_03.cc

index 1968ca6171319f75c56274af8581ffea9c4ae0c5..2b538ac10ac083cf6b07b3c813041e6cfca0ea03 100644 (file)
@@ -406,10 +406,11 @@ namespace MPI_nonlinear_solver_selector_test
 #endif
     preconditioner.initialize(jacobian_matrix, data);
 
-    solver.solve(jacobian_matrix, solution, rhs, preconditioner);
-
-    deallog << "   Solved in " << solver_control.last_step() << " iterations."
-            << std::endl;
+    check_solver_within_range(
+      solver.solve(jacobian_matrix, solution, rhs, preconditioner),
+      solver_control.last_step(),
+      0,
+      10);
 
     zero_constraints.distribute(solution);
   }

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.