From 957f2981815f9b87cd4782f92a26f0de26343905 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Wed, 8 Apr 2020 14:46:01 +0200 Subject: [PATCH] Make test more robust by printing some data --- tests/bits/fe_field_function_04_vector.cc | 15 +- tests/bits/fe_field_function_04_vector.output | 403 ++++++++++++++++++ 2 files changed, 412 insertions(+), 6 deletions(-) diff --git a/tests/bits/fe_field_function_04_vector.cc b/tests/bits/fe_field_function_04_vector.cc index 01bc73764c..fbb24d76b1 100644 --- a/tests/bits/fe_field_function_04_vector.cc +++ b/tests/bits/fe_field_function_04_vector.cc @@ -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>(); diff --git a/tests/bits/fe_field_function_04_vector.output b/tests/bits/fe_field_function_04_vector.output index 0fd8fc12f0..bc004fcc6e 100644 --- a/tests/bits/fe_field_function_04_vector.output +++ b/tests/bits/fe_field_function_04_vector.output @@ -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 -- 2.39.5