]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make test more robust by printing some data
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 8 Apr 2020 12:46:01 +0000 (14:46 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 8 Apr 2020 12:59:20 +0000 (14:59 +0200)
tests/bits/fe_field_function_04_vector.cc
tests/bits/fe_field_function_04_vector.output

index 01bc73764c4117e748eb555dc5358ab5c1577722..fbb24d76b199b578275214b7c360f8778cc5f20c 100644 (file)
@@ -95,13 +95,15 @@ test()
   fe_function.vector_value_list(points, m);
 
   for (unsigned int i = 0; i < m.size(); ++i)
-    {
-      Assert(std::fabs(m[i](0) - points[i].square()) <
-               1e-10 * std::fabs(m[i](0) + points[i].square()),
-             ExcInternalError());
+    deallog << points[i].square() << "  " << m[i](0) - points[i].square()
+            << std::endl;
+  deallog << std::endl;
 
-      Assert(std::fabs(m[i](1)) < 1e-10, ExcInternalError());
-    }
+  double sum = 0.;
+  for (const auto &d : m)
+    sum += std::abs(d(1));
+
+  deallog << "Sum of second component: " << sum << std::endl;
 
   deallog << "OK" << std::endl;
 }
@@ -111,6 +113,7 @@ int
 main()
 {
   initlog();
+  deallog << std::setprecision(9);
 
   test<2>();
 
index 0fd8fc12f0b442283edd8868867114c242b04d11..bc004fcc6ead47942cef78f86e7788dfb432244a 100644 (file)
@@ -1,2 +1,405 @@
 
+DEAL::0.980000000  1.11022302e-16
+DEAL::0.886900000  0.00000000
+DEAL::0.803600000  2.22044605e-16
+DEAL::0.730100000  1.11022302e-16
+DEAL::0.666400000  2.22044605e-16
+DEAL::0.612500000  1.11022302e-16
+DEAL::0.568400000  0.00000000
+DEAL::0.534100000  -1.11022302e-16
+DEAL::0.509600000  -1.11022302e-16
+DEAL::0.494900000  0.00000000
+DEAL::0.490000000  -1.11022302e-16
+DEAL::0.494900000  -1.11022302e-16
+DEAL::0.509600000  -1.11022302e-16
+DEAL::0.534100000  0.00000000
+DEAL::0.568400000  0.00000000
+DEAL::0.612500000  -2.22044605e-16
+DEAL::0.666400000  -1.11022302e-16
+DEAL::0.730100000  0.00000000
+DEAL::0.803600000  0.00000000
+DEAL::0.886900000  1.11022302e-16
+DEAL::0.886900000  -2.22044605e-16
+DEAL::0.793800000  0.00000000
+DEAL::0.710500000  1.11022302e-16
+DEAL::0.637000000  0.00000000
+DEAL::0.573300000  1.11022302e-16
+DEAL::0.519400000  0.00000000
+DEAL::0.475300000  -5.55111512e-17
+DEAL::0.441000000  -1.11022302e-16
+DEAL::0.416500000  -5.55111512e-17
+DEAL::0.401800000  0.00000000
+DEAL::0.396900000  0.00000000
+DEAL::0.401800000  -5.55111512e-17
+DEAL::0.416500000  -1.11022302e-16
+DEAL::0.441000000  -1.11022302e-16
+DEAL::0.475300000  -1.11022302e-16
+DEAL::0.519400000  -1.11022302e-16
+DEAL::0.573300000  -1.11022302e-16
+DEAL::0.637000000  0.00000000
+DEAL::0.710500000  0.00000000
+DEAL::0.793800000  1.11022302e-16
+DEAL::0.803600000  1.11022302e-16
+DEAL::0.710500000  1.11022302e-16
+DEAL::0.627200000  0.00000000
+DEAL::0.553700000  0.00000000
+DEAL::0.490000000  -5.55111512e-17
+DEAL::0.436100000  -5.55111512e-17
+DEAL::0.392000000  -1.11022302e-16
+DEAL::0.357700000  -5.55111512e-17
+DEAL::0.333200000  5.55111512e-17
+DEAL::0.318500000  0.00000000
+DEAL::0.313600000  -5.55111512e-17
+DEAL::0.318500000  -5.55111512e-17
+DEAL::0.333200000  0.00000000
+DEAL::0.357700000  0.00000000
+DEAL::0.392000000  5.55111512e-17
+DEAL::0.436100000  -5.55111512e-17
+DEAL::0.490000000  -5.55111512e-17
+DEAL::0.553700000  0.00000000
+DEAL::0.627200000  1.11022302e-16
+DEAL::0.710500000  0.00000000
+DEAL::0.730100000  1.11022302e-16
+DEAL::0.637000000  0.00000000
+DEAL::0.553700000  0.00000000
+DEAL::0.480200000  0.00000000
+DEAL::0.416500000  0.00000000
+DEAL::0.362600000  1.11022302e-16
+DEAL::0.318500000  0.00000000
+DEAL::0.284200000  0.00000000
+DEAL::0.259700000  0.00000000
+DEAL::0.245000000  -2.77555756e-17
+DEAL::0.240100000  -2.77555756e-17
+DEAL::0.245000000  0.00000000
+DEAL::0.259700000  0.00000000
+DEAL::0.284200000  0.00000000
+DEAL::0.318500000  0.00000000
+DEAL::0.362600000  5.55111512e-17
+DEAL::0.416500000  5.55111512e-17
+DEAL::0.480200000  5.55111512e-17
+DEAL::0.553700000  -1.11022302e-16
+DEAL::0.637000000  0.00000000
+DEAL::0.666400000  1.11022302e-16
+DEAL::0.573300000  1.11022302e-16
+DEAL::0.490000000  -1.11022302e-16
+DEAL::0.416500000  5.55111512e-17
+DEAL::0.352800000  0.00000000
+DEAL::0.298900000  -5.55111512e-17
+DEAL::0.254800000  5.55111512e-17
+DEAL::0.220500000  0.00000000
+DEAL::0.196000000  0.00000000
+DEAL::0.181300000  -2.77555756e-17
+DEAL::0.176400000  0.00000000
+DEAL::0.181300000  -5.55111512e-17
+DEAL::0.196000000  -2.77555756e-17
+DEAL::0.220500000  2.77555756e-17
+DEAL::0.254800000  5.55111512e-17
+DEAL::0.298900000  5.55111512e-17
+DEAL::0.352800000  -5.55111512e-17
+DEAL::0.416500000  -5.55111512e-17
+DEAL::0.490000000  -5.55111512e-17
+DEAL::0.573300000  -1.11022302e-16
+DEAL::0.612500000  1.11022302e-16
+DEAL::0.519400000  0.00000000
+DEAL::0.436100000  -5.55111512e-17
+DEAL::0.362600000  1.11022302e-16
+DEAL::0.298900000  0.00000000
+DEAL::0.245000000  5.55111512e-17
+DEAL::0.200900000  0.00000000
+DEAL::0.166600000  0.00000000
+DEAL::0.142100000  2.77555756e-17
+DEAL::0.127400000  -2.77555756e-17
+DEAL::0.122500000  0.00000000
+DEAL::0.127400000  0.00000000
+DEAL::0.142100000  -2.77555756e-17
+DEAL::0.166600000  2.77555756e-17
+DEAL::0.200900000  5.55111512e-17
+DEAL::0.245000000  0.00000000
+DEAL::0.298900000  5.55111512e-17
+DEAL::0.362600000  0.00000000
+DEAL::0.436100000  -5.55111512e-17
+DEAL::0.519400000  0.00000000
+DEAL::0.568400000  0.00000000
+DEAL::0.475300000  -5.55111512e-17
+DEAL::0.392000000  -1.11022302e-16
+DEAL::0.318500000  0.00000000
+DEAL::0.254800000  5.55111512e-17
+DEAL::0.200900000  0.00000000
+DEAL::0.156800000  2.77555756e-17
+DEAL::0.122500000  -1.38777878e-17
+DEAL::0.0980000000  0.00000000
+DEAL::0.0833000000  -1.38777878e-17
+DEAL::0.0784000000  0.00000000
+DEAL::0.0833000000  0.00000000
+DEAL::0.0980000000  0.00000000
+DEAL::0.122500000  0.00000000
+DEAL::0.156800000  -5.55111512e-17
+DEAL::0.200900000  5.55111512e-17
+DEAL::0.254800000  0.00000000
+DEAL::0.318500000  5.55111512e-17
+DEAL::0.392000000  -1.11022302e-16
+DEAL::0.475300000  -5.55111512e-17
+DEAL::0.534100000  -1.11022302e-16
+DEAL::0.441000000  -1.11022302e-16
+DEAL::0.357700000  -5.55111512e-17
+DEAL::0.284200000  0.00000000
+DEAL::0.220500000  0.00000000
+DEAL::0.166600000  0.00000000
+DEAL::0.122500000  -1.38777878e-17
+DEAL::0.0882000000  -1.38777878e-17
+DEAL::0.0637000000  1.38777878e-17
+DEAL::0.0490000000  0.00000000
+DEAL::0.0441000000  6.93889390e-18
+DEAL::0.0490000000  -6.93889390e-18
+DEAL::0.0637000000  0.00000000
+DEAL::0.0882000000  1.38777878e-17
+DEAL::0.122500000  -1.38777878e-17
+DEAL::0.166600000  0.00000000
+DEAL::0.220500000  0.00000000
+DEAL::0.284200000  0.00000000
+DEAL::0.357700000  -1.66533454e-16
+DEAL::0.441000000  -5.55111512e-17
+DEAL::0.509600000  -1.11022302e-16
+DEAL::0.416500000  -5.55111512e-17
+DEAL::0.333200000  5.55111512e-17
+DEAL::0.259700000  0.00000000
+DEAL::0.196000000  0.00000000
+DEAL::0.142100000  2.77555756e-17
+DEAL::0.0980000000  0.00000000
+DEAL::0.0637000000  1.38777878e-17
+DEAL::0.0392000000  0.00000000
+DEAL::0.0245000000  3.46944695e-18
+DEAL::0.0196000000  3.46944695e-18
+DEAL::0.0245000000  0.00000000
+DEAL::0.0392000000  6.93889390e-18
+DEAL::0.0637000000  1.38777878e-17
+DEAL::0.0980000000  -1.38777878e-17
+DEAL::0.142100000  2.77555756e-17
+DEAL::0.196000000  -5.55111512e-17
+DEAL::0.259700000  0.00000000
+DEAL::0.333200000  0.00000000
+DEAL::0.416500000  -5.55111512e-17
+DEAL::0.494900000  0.00000000
+DEAL::0.401800000  0.00000000
+DEAL::0.318500000  0.00000000
+DEAL::0.245000000  -2.77555756e-17
+DEAL::0.181300000  -2.77555756e-17
+DEAL::0.127400000  -2.77555756e-17
+DEAL::0.0833000000  -1.38777878e-17
+DEAL::0.0490000000  0.00000000
+DEAL::0.0245000000  0.00000000
+DEAL::0.00980000000  1.73472348e-18
+DEAL::0.00490000000  8.67361738e-19
+DEAL::0.00980000000  0.00000000
+DEAL::0.0245000000  3.46944695e-18
+DEAL::0.0490000000  0.00000000
+DEAL::0.0833000000  -1.38777878e-17
+DEAL::0.127400000  2.77555756e-17
+DEAL::0.181300000  -2.77555756e-17
+DEAL::0.245000000  -2.77555756e-17
+DEAL::0.318500000  0.00000000
+DEAL::0.401800000  0.00000000
+DEAL::0.490000000  -1.11022302e-16
+DEAL::0.396900000  0.00000000
+DEAL::0.313600000  0.00000000
+DEAL::0.240100000  -2.77555756e-17
+DEAL::0.176400000  0.00000000
+DEAL::0.122500000  -1.38777878e-17
+DEAL::0.0784000000  0.00000000
+DEAL::0.0441000000  -6.93889390e-18
+DEAL::0.0196000000  0.00000000
+DEAL::0.00490000000  2.60208521e-18
+DEAL::2.46519033e-32  0.00000000
+DEAL::0.00490000000  8.67361738e-19
+DEAL::0.0196000000  3.46944695e-18
+DEAL::0.0441000000  0.00000000
+DEAL::0.0784000000  0.00000000
+DEAL::0.122500000  -4.16333634e-17
+DEAL::0.176400000  0.00000000
+DEAL::0.240100000  -2.77555756e-17
+DEAL::0.313600000  -5.55111512e-17
+DEAL::0.396900000  0.00000000
+DEAL::0.494900000  -5.55111512e-17
+DEAL::0.401800000  -5.55111512e-17
+DEAL::0.318500000  -5.55111512e-17
+DEAL::0.245000000  -2.77555756e-17
+DEAL::0.181300000  -2.77555756e-17
+DEAL::0.127400000  0.00000000
+DEAL::0.0833000000  0.00000000
+DEAL::0.0490000000  -6.93889390e-18
+DEAL::0.0245000000  0.00000000
+DEAL::0.00980000000  0.00000000
+DEAL::0.00490000000  -8.67361738e-19
+DEAL::0.00980000000  1.73472348e-18
+DEAL::0.0245000000  3.46944695e-18
+DEAL::0.0490000000  0.00000000
+DEAL::0.0833000000  0.00000000
+DEAL::0.127400000  0.00000000
+DEAL::0.181300000  -2.77555756e-17
+DEAL::0.245000000  5.55111512e-17
+DEAL::0.318500000  0.00000000
+DEAL::0.401800000  -1.11022302e-16
+DEAL::0.509600000  -1.11022302e-16
+DEAL::0.416500000  0.00000000
+DEAL::0.333200000  0.00000000
+DEAL::0.259700000  0.00000000
+DEAL::0.196000000  -2.77555756e-17
+DEAL::0.142100000  -2.77555756e-17
+DEAL::0.0980000000  0.00000000
+DEAL::0.0637000000  0.00000000
+DEAL::0.0392000000  6.93889390e-18
+DEAL::0.0245000000  3.46944695e-18
+DEAL::0.0196000000  3.46944695e-18
+DEAL::0.0245000000  0.00000000
+DEAL::0.0392000000  6.93889390e-18
+DEAL::0.0637000000  0.00000000
+DEAL::0.0980000000  -1.38777878e-17
+DEAL::0.142100000  0.00000000
+DEAL::0.196000000  2.77555756e-17
+DEAL::0.259700000  0.00000000
+DEAL::0.333200000  -1.11022302e-16
+DEAL::0.416500000  0.00000000
+DEAL::0.534100000  1.11022302e-16
+DEAL::0.441000000  0.00000000
+DEAL::0.357700000  0.00000000
+DEAL::0.284200000  0.00000000
+DEAL::0.220500000  2.77555756e-17
+DEAL::0.166600000  2.77555756e-17
+DEAL::0.122500000  1.38777878e-17
+DEAL::0.0882000000  2.77555756e-17
+DEAL::0.0637000000  1.38777878e-17
+DEAL::0.0490000000  0.00000000
+DEAL::0.0441000000  6.93889390e-18
+DEAL::0.0490000000  6.93889390e-18
+DEAL::0.0637000000  0.00000000
+DEAL::0.0882000000  1.38777878e-17
+DEAL::0.122500000  -1.38777878e-17
+DEAL::0.166600000  0.00000000
+DEAL::0.220500000  0.00000000
+DEAL::0.284200000  5.55111512e-17
+DEAL::0.357700000  -5.55111512e-17
+DEAL::0.441000000  -5.55111512e-17
+DEAL::0.568400000  1.11022302e-16
+DEAL::0.475300000  -5.55111512e-17
+DEAL::0.392000000  5.55111512e-17
+DEAL::0.318500000  0.00000000
+DEAL::0.254800000  5.55111512e-17
+DEAL::0.200900000  2.77555756e-17
+DEAL::0.156800000  -8.32667268e-17
+DEAL::0.122500000  -1.38777878e-17
+DEAL::0.0980000000  -1.38777878e-17
+DEAL::0.0833000000  -2.77555756e-17
+DEAL::0.0784000000  0.00000000
+DEAL::0.0833000000  -1.38777878e-17
+DEAL::0.0980000000  0.00000000
+DEAL::0.122500000  0.00000000
+DEAL::0.156800000  -2.77555756e-17
+DEAL::0.200900000  2.77555756e-17
+DEAL::0.254800000  0.00000000
+DEAL::0.318500000  5.55111512e-17
+DEAL::0.392000000  0.00000000
+DEAL::0.475300000  -5.55111512e-17
+DEAL::0.612500000  -1.11022302e-16
+DEAL::0.519400000  -1.11022302e-16
+DEAL::0.436100000  0.00000000
+DEAL::0.362600000  5.55111512e-17
+DEAL::0.298900000  5.55111512e-17
+DEAL::0.245000000  0.00000000
+DEAL::0.200900000  5.55111512e-17
+DEAL::0.166600000  0.00000000
+DEAL::0.142100000  2.77555756e-17
+DEAL::0.127400000  2.77555756e-17
+DEAL::0.122500000  -5.55111512e-17
+DEAL::0.127400000  0.00000000
+DEAL::0.142100000  0.00000000
+DEAL::0.166600000  0.00000000
+DEAL::0.200900000  0.00000000
+DEAL::0.245000000  -2.77555756e-17
+DEAL::0.298900000  0.00000000
+DEAL::0.362600000  1.11022302e-16
+DEAL::0.436100000  0.00000000
+DEAL::0.519400000  -1.11022302e-16
+DEAL::0.666400000  -1.11022302e-16
+DEAL::0.573300000  0.00000000
+DEAL::0.490000000  0.00000000
+DEAL::0.416500000  0.00000000
+DEAL::0.352800000  0.00000000
+DEAL::0.298900000  5.55111512e-17
+DEAL::0.254800000  0.00000000
+DEAL::0.220500000  0.00000000
+DEAL::0.196000000  -5.55111512e-17
+DEAL::0.181300000  -2.77555756e-17
+DEAL::0.176400000  0.00000000
+DEAL::0.181300000  0.00000000
+DEAL::0.196000000  2.77555756e-17
+DEAL::0.220500000  0.00000000
+DEAL::0.254800000  0.00000000
+DEAL::0.298900000  0.00000000
+DEAL::0.352800000  -5.55111512e-17
+DEAL::0.416500000  0.00000000
+DEAL::0.490000000  -1.11022302e-16
+DEAL::0.573300000  -1.11022302e-16
+DEAL::0.730100000  0.00000000
+DEAL::0.637000000  0.00000000
+DEAL::0.553700000  0.00000000
+DEAL::0.480200000  5.55111512e-17
+DEAL::0.416500000  -5.55111512e-17
+DEAL::0.362600000  0.00000000
+DEAL::0.318500000  5.55111512e-17
+DEAL::0.284200000  0.00000000
+DEAL::0.259700000  0.00000000
+DEAL::0.245000000  -2.77555756e-17
+DEAL::0.240100000  -2.77555756e-17
+DEAL::0.245000000  5.55111512e-17
+DEAL::0.259700000  0.00000000
+DEAL::0.284200000  5.55111512e-17
+DEAL::0.318500000  5.55111512e-17
+DEAL::0.362600000  0.00000000
+DEAL::0.416500000  0.00000000
+DEAL::0.480200000  0.00000000
+DEAL::0.553700000  0.00000000
+DEAL::0.637000000  1.11022302e-16
+DEAL::0.803600000  0.00000000
+DEAL::0.710500000  1.11022302e-16
+DEAL::0.627200000  1.11022302e-16
+DEAL::0.553700000  -1.11022302e-16
+DEAL::0.490000000  -5.55111512e-17
+DEAL::0.436100000  -5.55111512e-17
+DEAL::0.392000000  -1.11022302e-16
+DEAL::0.357700000  -1.66533454e-16
+DEAL::0.333200000  0.00000000
+DEAL::0.318500000  0.00000000
+DEAL::0.313600000  5.55111512e-17
+DEAL::0.318500000  0.00000000
+DEAL::0.333200000  -5.55111512e-17
+DEAL::0.357700000  -1.11022302e-16
+DEAL::0.392000000  0.00000000
+DEAL::0.436100000  0.00000000
+DEAL::0.490000000  0.00000000
+DEAL::0.553700000  0.00000000
+DEAL::0.627200000  0.00000000
+DEAL::0.710500000  -1.11022302e-16
+DEAL::0.886900000  2.22044605e-16
+DEAL::0.793800000  1.11022302e-16
+DEAL::0.710500000  0.00000000
+DEAL::0.637000000  0.00000000
+DEAL::0.573300000  -1.11022302e-16
+DEAL::0.519400000  0.00000000
+DEAL::0.475300000  -5.55111512e-17
+DEAL::0.441000000  -5.55111512e-17
+DEAL::0.416500000  -5.55111512e-17
+DEAL::0.401800000  0.00000000
+DEAL::0.396900000  0.00000000
+DEAL::0.401800000  -5.55111512e-17
+DEAL::0.416500000  -5.55111512e-17
+DEAL::0.441000000  5.55111512e-17
+DEAL::0.475300000  -5.55111512e-17
+DEAL::0.519400000  0.00000000
+DEAL::0.573300000  0.00000000
+DEAL::0.637000000  1.11022302e-16
+DEAL::0.710500000  -1.11022302e-16
+DEAL::0.793800000  0.00000000
+DEAL::0.475300000  -5.55111512e-17
+DEAL::
+DEAL::Sum of second component: 0.00000000
 DEAL::OK

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.