-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);
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