From: Matthias Maier Date: Fri, 23 Jun 2023 05:16:20 +0000 (-0500) Subject: Test numerics/nonlinear_solver_selector_03: use check_solver_within_range macro X-Git-Tag: v9.5.0-rc1~49^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b524e13a05bb86eab0469276e6a637d7d1a612e;p=dealii.git Test numerics/nonlinear_solver_selector_03: use check_solver_within_range macro --- diff --git a/tests/numerics/nonlinear_solver_selector_03.cc b/tests/numerics/nonlinear_solver_selector_03.cc index 1968ca6171..2b538ac10a 100644 --- a/tests/numerics/nonlinear_solver_selector_03.cc +++ b/tests/numerics/nonlinear_solver_selector_03.cc @@ -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); }