From: Matthias Maier Date: Tue, 20 Mar 2018 03:21:44 +0000 (-0500) Subject: tests: sundials/harmonic_oscillator_04 increase precision X-Git-Tag: v9.0.0-rc1~293^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d725be5419f8df7197b72309614f2c5684731382;p=dealii.git tests: sundials/harmonic_oscillator_04 increase precision --- diff --git a/tests/sundials/harmonic_oscillator_04.cc b/tests/sundials/harmonic_oscillator_04.cc index 325f3b16ef..ced127b2da 100644 --- a/tests/sundials/harmonic_oscillator_04.cc +++ b/tests/sundials/harmonic_oscillator_04.cc @@ -104,7 +104,7 @@ int main (int argc, char **argv) // limit the output to every 10th step and increase the precision to make // the test more robust if (step_number % 10 == 0) - out << t << " " << std::setprecision(7) + out << t << " " << std::setprecision(10) << sol[0] << " " << sol[1] << " " << sol[2] << std::endl; return 0; }; diff --git a/tests/sundials/harmonic_oscillator_04.output b/tests/sundials/harmonic_oscillator_04.output index a8d6922f9b..ae732b9f8c 100644 --- a/tests/sundials/harmonic_oscillator_04.output +++ b/tests/sundials/harmonic_oscillator_04.output @@ -1,11 +1,11 @@ 0 3.9 1.1 2.8 -1 2.075275 1.059602 2.499911 -2 1.10046 1.72361 2.499985 -3 0.7896202 2.326668 2.499981 -4 0.8117726 2.725584 2.499993 -5 1.187003 2.595542 2.500085 -6 1.887311 1.494098 2.499879 -7 1.323271 1.619016 2.500041 -8 0.9217875 2.130219 2.50001 -9 0.8495426 2.539475 2.50008 -10 1.06497 2.595956 2.499973 +1 2.075274578 1.059601971 2.499948149 +2 1.100460018 1.723610111 2.499972517 +3 0.7896202372 2.326668043 2.499980207 +4 0.8117726432 2.725583965 2.499979833 +5 1.187002916 2.595541878 2.499970301 +6 1.887311324 1.494098057 2.499952687 +7 1.323271341 1.619016372 2.499966912 +8 0.9217874641 2.130219386 2.499976935 +9 0.849542577 2.539475069 2.499978894 +10 1.064969831 2.595955794 2.499973382 diff --git a/tests/sundials/harmonic_oscillator_04.prm b/tests/sundials/harmonic_oscillator_04.prm index d0ea5d370b..ce054b3b58 100644 --- a/tests/sundials/harmonic_oscillator_04.prm +++ b/tests/sundials/harmonic_oscillator_04.prm @@ -2,8 +2,8 @@ set Final time = 10 set Initial time = 0 set Time interval between each output = 0.1 subsection Error control - set Absolute error tolerance = 0.000001 - set Relative error tolerance = 0.000010 + set Absolute error tolerance = 0.00000001 + set Relative error tolerance = 0.00000001 end subsection Running parameters set Implicit function is linear = true