From: Vladimir Yushutin Date: Mon, 3 Jun 2024 16:32:07 +0000 (-0400) Subject: The regression test shows that step-9 converges in 1046 (not the expected 1049) itera... X-Git-Tag: v9.6.0-rc1~212^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17099%2Fhead;p=dealii.git The regression test shows that step-9 converges in 1046 (not the expected 1049) iterations for the refinement level 5. The method check_solver_within_range is used now with the 335 (corresponds to refinement level 1) to the 1050 range of accepted results. --- diff --git a/tests/examples/step-9.diff b/tests/examples/step-9.diff index 9d35d72c6c..4f4c15a979 100644 --- a/tests/examples/step-9.diff +++ b/tests/examples/step-9.diff @@ -1,8 +1,28 @@ -850c850 +49a49 +> #include "../example_test.h" +762c762,766 +< solver.solve(system_matrix, solution, system_rhs, preconditioner); +--- +> check_solver_within_range(std::cout, +> solver.solve(system_matrix, solution, system_rhs, preconditioner), +> solver_control.last_step(), +> 335, +> 1050); +766,769c770,773 +< std::cout << " Iterations required for convergence: " +< << solver_control.last_step() << '\n' +< << " Norm of residual at convergence: " +< << solver_control.last_value() << '\n'; +--- +> //std::cout << " Iterations required for convergence: " +> // << solver_control.last_step() << '\n' +> // << " Norm of residual at convergence: " +> // << solver_control.last_value() << '\n'; +850c854 < for (unsigned int cycle = 0; cycle < 10; ++cycle) --- > for (unsigned int cycle = 0; cycle < 5; ++cycle) -875c875 +875c879 < output_results(cycle); --- > //output_results(cycle); diff --git a/tests/examples/step-9.output b/tests/examples/step-9.output index 88a8d98f9b..7e36a62fba 100644 --- a/tests/examples/step-9.output +++ b/tests/examples/step-9.output @@ -1,25 +1,20 @@ Cycle 0: Number of active cells: 64 Number of degrees of freedom: 1681 - Iterations required for convergence: 338 - Norm of residual at convergence: 2.91757e-11 +Solver stopped within 335 - 1050 iterations Cycle 1: Number of active cells: 121 Number of degrees of freedom: 3436 - Iterations required for convergence: 448 - Norm of residual at convergence: 2.40051e-11 +Solver stopped within 335 - 1050 iterations Cycle 2: Number of active cells: 238 Number of degrees of freedom: 6487 - Iterations required for convergence: 535 - Norm of residual at convergence: 2.06943e-11 +Solver stopped within 335 - 1050 iterations Cycle 3: Number of active cells: 481 Number of degrees of freedom: 13510 - Iterations required for convergence: 669 - Norm of residual at convergence: 1.39588e-11 +Solver stopped within 335 - 1050 iterations Cycle 4: Number of active cells: 958 Number of degrees of freedom: 26137 - Iterations required for convergence: 1049 - Norm of residual at convergence: 1.19601e-11 +Solver stopped within 335 - 1050 iterations