From e808f86dafaf4699712a2e0d445a20c5d292ee2d Mon Sep 17 00:00:00 2001 From: Vladimir Ivannikov Date: Mon, 5 Dec 2022 11:20:44 +0100 Subject: [PATCH] Update test --- tests/lac/solver_control_04.cc | 10 ++++++++++ tests/lac/solver_control_04.output | 8 ++++++++ 2 files changed, 18 insertions(+) diff --git a/tests/lac/solver_control_04.cc b/tests/lac/solver_control_04.cc index 45181e3a95..c07380defa 100644 --- a/tests/lac/solver_control_04.cc +++ b/tests/lac/solver_control_04.cc @@ -110,5 +110,15 @@ main(int argc, char **argv) check_solve(solver_control, A, u, f, preconditioner, false); } deallog.pop(); + deallog.push("Reuse"); + { + // Expects success + SolverControl solver_control(200, 1.e-1); + solver_control.enable_history_data(); + + check_solve(solver_control, A, u, f, preconditioner, true); + check_solve(solver_control, A, u, f, preconditioner, true); + } + deallog.pop(); } } diff --git a/tests/lac/solver_control_04.output b/tests/lac/solver_control_04.output index e7a3eb4917..3f41491282 100644 --- a/tests/lac/solver_control_04.output +++ b/tests/lac/solver_control_04.output @@ -8,3 +8,11 @@ DEAL:Iterations:cg::Starting value 31.0000 DEAL:Iterations:cg::Failure step 20 value 6.00198 DEAL:Iterations::Failure. DEAL:Iterations::Solver history data: 31.0000 83.4701 77.7927 79.1157 77.5543 68.9713 66.7436 59.1467 56.1131 49.6461 46.1902 40.5905 36.9687 32.0317 28.3918 23.9735 20.3921 16.3806 12.8817 9.19955 6.00198 +DEAL:Reuse:cg::Starting value 31.0000 +DEAL:Reuse:cg::Convergence step 34 value 0.0908879 +DEAL:Reuse::Success. +DEAL:Reuse::Solver history data: 31.0000 83.4701 77.7927 79.1157 77.5543 68.9713 66.7436 59.1467 56.1131 49.6461 46.1902 40.5905 36.9687 32.0317 28.3918 23.9735 20.3921 16.3806 12.8817 9.19955 6.00198 3.44349 2.20296 2.04617 2.24528 1.46106 0.914875 0.832960 0.599735 0.417881 0.381758 0.254475 0.196013 0.129650 0.0908879 +DEAL:Reuse:cg::Starting value 31.0000 +DEAL:Reuse:cg::Convergence step 34 value 0.0908879 +DEAL:Reuse::Success. +DEAL:Reuse::Solver history data: 31.0000 83.4701 77.7927 79.1157 77.5543 68.9713 66.7436 59.1467 56.1131 49.6461 46.1902 40.5905 36.9687 32.0317 28.3918 23.9735 20.3921 16.3806 12.8817 9.19955 6.00198 3.44349 2.20296 2.04617 2.24528 1.46106 0.914875 0.832960 0.599735 0.417881 0.381758 0.254475 0.196013 0.129650 0.0908879 -- 2.39.5