]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix test
authorPeter Munch <peterrmuench@gmail.com>
Fri, 15 Mar 2024 17:58:31 +0000 (18:58 +0100)
committerPeter Munch <peterrmuench@gmail.com>
Fri, 15 Mar 2024 17:58:31 +0000 (18:58 +0100)
tests/lac/precondition_relaxation_01.cc
tests/lac/precondition_relaxation_01.output

index 2d495811dc5e4e4fbd660ce855b5001117e4ee26..b53f4e3f2ca5e823c88bcf0be487d973ed094cc4 100644 (file)
@@ -225,18 +225,19 @@ main()
       {
         std::vector<std::tuple<double, double, double, double>> results;
 
-        {
-          // 0) Test PreconditionJacobi
-          PreconditionJacobi<MatrixType> preconditioner;
+        if (relaxation != 0.0)
+          {
+            // 0) Test PreconditionJacobi
+            PreconditionJacobi<MatrixType> preconditioner;
 
-          PreconditionJacobi<MatrixType>::AdditionalData ad;
-          ad.relaxation   = relaxation;
-          ad.n_iterations = n_iterations;
+            PreconditionJacobi<MatrixType>::AdditionalData ad;
+            ad.relaxation   = relaxation;
+            ad.n_iterations = n_iterations;
 
-          preconditioner.initialize(system_matrix, ad);
+            preconditioner.initialize(system_matrix, ad);
 
-          results.emplace_back(test(preconditioner, src));
-        }
+            results.emplace_back(test(preconditioner, src));
+          }
 
         {
           // 1) Test PreconditionRelaxation + DiagonalMatrix and matrix with
@@ -358,7 +359,9 @@ main()
 
               return true;
             }))
-          deallog << "OK!" << std::endl;
+          deallog << "OK! " << std::get<0>(results[0]) << " "
+                  << std::get<1>(results[0]) << " " << std::get<2>(results[0])
+                  << " " << std::get<3>(results[0]) << " " << std::endl;
         else
           deallog << "ERROR!" << std::endl;
       }
index c3f612cf69759dede6b89f093dac0de59c9fb554..24faf716949563ce52cb774679fd344d51280a33 100644 (file)
@@ -1,13 +1,13 @@
 
-DEAL::OK!
-DEAL::OK!
-DEAL::OK!
-DEAL::OK!
-DEAL::OK!
-DEAL::OK!
-DEAL::OK!
-DEAL::OK!
-DEAL::OK!
-DEAL::OK!
-DEAL::OK!
-DEAL::OK!
+DEAL::OK! 6.06176 14.6813 6.06176 14.6813 
+DEAL::OK! 10.5221 19.3228 10.5221 19.3228 
+DEAL::OK! 15.3680 24.2003 15.3680 24.2003 
+DEAL::OK! 5.62500 14.2615 5.62500 14.2615 
+DEAL::OK! 9.85490 18.6445 9.85490 18.6445 
+DEAL::OK! 14.3212 23.1484 14.3212 23.1484 
+DEAL::OK! 5.06250 13.7224 5.06250 13.7224 
+DEAL::OK! 8.97855 17.7551 8.97855 17.7551 
+DEAL::OK! 12.9800 21.7988 12.9800 21.7988 
+DEAL::OK! 6.18750 14.8024 6.18750 14.8024 
+DEAL::OK! 10.7121 19.5161 10.7121 19.5161 
+DEAL::OK! 15.6708 24.5042 15.6708 24.5042 

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.