From: Matthias Maier Date: Fri, 19 Dec 2014 11:05:36 +0000 (+0100) Subject: Test bits/step-51: Improve output X-Git-Tag: v8.2.0-rc1~5^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=423d98e473e3ee96ea447103d5e5b4dc453622b1;p=dealii.git Test bits/step-51: Improve output This allows numdiff to catch small roundoff errors. --- diff --git a/tests/bits/step-51.cc b/tests/bits/step-51.cc index e311351618..a699e71d04 100644 --- a/tests/bits/step-51.cc +++ b/tests/bits/step-51.cc @@ -949,19 +949,13 @@ namespace Step51 output_results (cycle); } - convergence_table.set_precision("val L2", 3); + convergence_table.set_precision("val L2", 8); convergence_table.set_scientific("val L2", true); - convergence_table.set_precision("grad L2", 3); + convergence_table.set_precision("grad L2", 8); convergence_table.set_scientific("grad L2", true); - convergence_table.set_precision("val L2-post", 3); + convergence_table.set_precision("val L2-post", 8); convergence_table.set_scientific("val L2-post", true); - convergence_table - .evaluate_convergence_rates("val L2", "cells", ConvergenceTable::reduction_rate_log2, dim); - convergence_table - .evaluate_convergence_rates("grad L2", "cells", ConvergenceTable::reduction_rate_log2, dim); - convergence_table - .evaluate_convergence_rates("val L2-post", "cells", ConvergenceTable::reduction_rate_log2, dim); convergence_table.write_text(deallog.get_file_stream()); } diff --git a/tests/bits/step-51.output b/tests/bits/step-51.output index a2050d9500..1806408472 100644 --- a/tests/bits/step-51.output +++ b/tests/bits/step-51.output @@ -9,15 +9,15 @@ cells dofs val L2 grad L2 val L2-post -8 9 4.080e-01 - 1.722e+00 - 3.362e-01 - -12 13 1.659e-01 2.22 8.766e-01 1.67 2.151e-02 6.78 -16 17 7.996e-02 2.54 4.531e-01 2.29 1.125e-02 2.25 -24 25 3.705e-02 1.90 2.028e-01 1.98 3.372e-03 2.97 -32 33 2.125e-02 1.93 1.140e-01 2.00 1.430e-03 2.98 -48 49 9.610e-03 1.96 5.048e-02 2.01 4.242e-04 3.00 -64 65 5.449e-03 1.97 2.831e-02 2.01 1.787e-04 3.00 -96 97 2.440e-03 1.98 1.253e-02 2.01 5.281e-05 3.01 -128 129 1.377e-03 1.99 7.035e-03 2.01 2.224e-05 3.01 +8 9 4.08029705e-01 1.72213721e+00 3.36203456e-01 +12 13 1.65873051e-01 8.76642942e-01 2.15098336e-02 +16 17 7.99649730e-02 4.53086972e-01 1.12488903e-02 +24 25 3.70488688e-02 2.02788562e-01 3.37181822e-03 +32 33 2.12457422e-02 1.13992751e-01 1.42968935e-03 +48 49 9.61047132e-03 5.04784398e-02 4.24158934e-04 +64 65 5.44944359e-03 2.83092204e-02 1.78719070e-04 +96 97 2.44000764e-03 1.25343679e-02 5.28098280e-05 +128 129 1.37726672e-03 7.03517301e-03 2.22355266e-05 @@ -28,15 +28,15 @@ cells dofs val L2 grad L2 val L2-post cells dofs val L2 grad L2 val L2-post -8 9 2.141e-02 - 1.398e-01 - 3.487e-03 - -12 13 6.701e-03 2.87 3.811e-02 3.21 4.976e-04 4.80 -16 17 1.693e-03 4.78 9.999e-03 4.65 1.085e-04 5.29 -24 25 3.501e-04 3.89 2.009e-03 3.96 1.440e-05 4.98 -32 33 1.126e-04 3.94 6.373e-04 3.99 3.412e-06 5.01 -48 49 2.256e-05 3.97 1.259e-04 4.00 4.472e-07 5.01 -64 65 7.179e-06 3.98 3.980e-05 4.00 1.057e-07 5.01 -96 97 1.425e-06 3.99 7.848e-06 4.00 1.386e-08 5.01 -128 129 4.519e-07 3.99 2.481e-06 4.00 3.284e-09 5.01 +8 9 2.14132629e-02 1.39781818e-01 3.48711759e-03 +12 13 6.70135254e-03 3.81131358e-02 4.97577712e-04 +16 17 1.69347122e-03 9.99922398e-03 1.08514971e-04 +24 25 3.50142131e-04 2.00873613e-03 1.44013848e-05 +32 33 1.12640468e-04 6.37331454e-04 3.41220834e-06 +48 49 2.25574786e-05 1.25899431e-04 4.47214433e-07 +64 65 7.17865669e-06 3.97964031e-05 1.05744661e-07 +96 97 1.42517115e-06 7.84810800e-06 1.38645833e-08 +128 129 4.51945652e-07 2.48053493e-06 3.28470739e-09 @@ -44,22 +44,22 @@ cells dofs val L2 grad L2 val L2-post cells dofs val L2 grad L2 val L2-post -16 80 1.066e+01 - 1.571e+01 - 1.055e+01 - -36 168 3.727e+00 2.59 7.998e+00 1.67 3.660e+00 2.61 -64 288 8.086e-01 5.31 4.228e+00 2.22 4.492e-01 7.29 -144 624 2.730e-01 2.68 1.867e+00 2.02 6.110e-02 4.92 -256 1088 1.493e-01 2.10 1.046e+00 2.01 2.878e-02 2.62 -576 2400 6.965e-02 1.88 4.847e-01 1.90 9.202e-03 2.81 +16 80 1.06637974e+01 1.57135687e+01 1.05527983e+01 +36 168 3.72729540e+00 7.99834919e+00 3.65975404e+00 +64 288 8.08605671e-01 4.22837353e+00 4.49196935e-01 +144 624 2.72973657e-01 1.86672556e+00 6.11032471e-02 +256 1088 1.49314478e-01 1.04597294e+00 2.87804827e-02 +576 2400 6.96454793e-02 4.84691858e-01 9.20205005e-03 -cells dofs val L2 grad L2 val L2-post -16 120 7.645e-01 - 5.413e+00 - 2.667e-01 - -36 252 4.745e-01 1.18 2.375e+00 2.03 3.501e-01 -0.67 -64 432 9.635e-02 5.54 7.772e-01 3.88 5.032e-02 6.74 -144 936 3.487e-02 2.51 2.718e-01 2.59 5.339e-03 5.53 -256 1632 1.920e-02 2.08 1.390e-01 2.33 1.731e-03 3.92 -576 3600 6.021e-03 2.86 4.291e-02 2.90 3.431e-04 3.99 +cells dofs val L2 grad L2 val L2-post +16 120 7.64547944e-01 5.41274881e+00 2.66736895e-01 +36 252 4.74469036e-01 2.37540507e+00 3.50112826e-01 +64 432 9.63450745e-02 7.77216911e-01 5.03229983e-02 +144 936 3.48706394e-02 2.71759868e-01 5.33870235e-03 +256 1632 1.91958193e-02 1.38962150e-01 1.73055567e-03 +576 3600 6.02106191e-03 4.29149084e-02 3.43073247e-04