From 6b524e13a05bb86eab0469276e6a637d7d1a612e Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Fri, 23 Jun 2023 00:16:20 -0500 Subject: [PATCH] Test numerics/nonlinear_solver_selector_03: use check_solver_within_range macro --- tests/numerics/nonlinear_solver_selector_03.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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); } -- 2.39.5