]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Test lac/gmres_reorthogonalize_04: Only output iteration count 10133/head
authorMatthias Maier <tamiko@43-1.org>
Mon, 11 May 2020 02:01:07 +0000 (21:01 -0500)
committerMatthias Maier <tamiko@43-1.org>
Mon, 11 May 2020 02:01:45 +0000 (21:01 -0500)
In reference to #10073
See also: https://cdash.43-1.org/testDetails.php?test=43916417&build=6239

tests/lac/gmres_reorthogonalize_04.cc
tests/lac/gmres_reorthogonalize_04.output

index 6cfdd0c9f3e806da01e4f76496dd7f2d433ab475..588c322d98ade41dbdb8a191bfc0f0722ada23f9 100644 (file)
@@ -54,7 +54,7 @@ namespace dealii
 
 template <typename number>
 void
-test()
+test(const unsigned int n_expected_steps)
 {
   const unsigned int n = 200;
   Vector<number>     rhs(n), sol(n);
@@ -81,19 +81,24 @@ test()
                               << accumulated_iterations << std::endl;
   };
   solver.connect_re_orthogonalization_slot(print_re_orthogonalization);
-  solver.solve(matrix, sol, rhs, PreconditionIdentity());
+
+  check_solver_within_range(
+    solver.solve(matrix, sol, rhs, PreconditionIdentity()),
+    control.last_step(),
+    n_expected_steps - 3,
+    n_expected_steps + 3);
 }
 
 int
 main()
 {
   initlog();
-  deallog << std::setprecision(3);
+  deallog << std::setprecision(10);
 
   deallog.push("double");
-  test<double>();
+  test<double>(105);
   deallog.pop();
   deallog.push("float");
-  test<float>();
+  test<float>(59);
   deallog.pop();
 }
index 093ab7f072189061891d75cdd3d93f43825072f9..8b74f405ad0eae2528316b1878f4c59339e86964 100644 (file)
@@ -1,5 +1,3 @@
 
-DEAL:double:GMRES::Starting value 14.1
-DEAL:double:GMRES::Convergence step 105 value 1.56e-13
-DEAL:float:GMRES::Starting value 14.1
-DEAL:float:GMRES::Convergence step 59 value 0.000110
+DEAL:double::Solver stopped within 102 - 108 iterations
+DEAL:float::Solver stopped within 56 - 62 iterations

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.