]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Update test
authorVladimir Ivannikov <vladimir.ivannikov@hzg.de>
Mon, 5 Dec 2022 10:20:44 +0000 (11:20 +0100)
committerVladimir Ivannikov <vladimir.ivannikov@hzg.de>
Mon, 5 Dec 2022 10:20:44 +0000 (11:20 +0100)
tests/lac/solver_control_04.cc
tests/lac/solver_control_04.output

index 45181e3a9562606eaf82f82a28122328998a0850..c07380defa1449ee62c5e48a1caf9f85ddd456bd 100644 (file)
@@ -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();
   }
 }
index e7a3eb4917632a27a273c9cb578a5d658394960b..3f41491282235134dc915d960514179c871abef3 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.