From 93d31b7a85585c10b3bfe2c77b0174460721a5de Mon Sep 17 00:00:00 2001 From: David Wells Date: Fri, 27 May 2022 20:25:31 -0400 Subject: [PATCH] Fix ARKODE 3 test. This works with both 5.4 and 6.2 now. --- tests/sundials/arkode_03.output | 20 ++++++++++---------- tests/sundials/arkode_03_in.prm | 14 +++++++++----- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/tests/sundials/arkode_03.output b/tests/sundials/arkode_03.output index 503f3a999d..4d8a78f72d 100644 --- a/tests/sundials/arkode_03.output +++ b/tests/sundials/arkode_03.output @@ -1,12 +1,12 @@ DEAL::0.00000 3.900000000 1.100000000 2.800000000 -DEAL::1.000000000 2.075274578 1.059601971 2.499947291 -DEAL::2.000000000 1.100460018 1.723610111 2.499972248 -DEAL::3.000000000 0.7896202372 2.326668043 2.499980243 -DEAL::4.000000000 0.8117726433 2.725583965 2.499982784 -DEAL::5.000000000 1.187002916 2.595541878 2.499973234 -DEAL::6.000000000 1.887311324 1.494098057 2.499934582 -DEAL::7.000000000 1.323271340 1.619016372 2.499963670 -DEAL::8.000000000 0.9217874641 2.130219386 2.499972986 -DEAL::9.000000000 0.8495425770 2.539475069 2.499983024 -DEAL::10.00000000 1.064969831 2.595955794 2.499973386 +DEAL::1.000000000 2.075274578 1.059601971 2.499947382 +DEAL::2.000000000 1.100460018 1.723610111 2.499972220 +DEAL::3.000000000 0.7896202372 2.326668043 2.499980117 +DEAL::4.000000000 0.8117726433 2.725583965 2.499984008 +DEAL::5.000000000 1.187002916 2.595541878 2.499971084 +DEAL::6.000000000 1.887311324 1.494098057 2.499930049 +DEAL::7.000000000 1.323271341 1.619016372 2.499966501 +DEAL::8.000000000 0.9217874641 2.130219386 2.499975040 +DEAL::9.000000000 0.8495425770 2.539475069 2.499979558 +DEAL::10.00000000 1.064969831 2.595955794 2.499973382 diff --git a/tests/sundials/arkode_03_in.prm b/tests/sundials/arkode_03_in.prm index ce054b3b58..f035bb5164 100644 --- a/tests/sundials/arkode_03_in.prm +++ b/tests/sundials/arkode_03_in.prm @@ -2,14 +2,18 @@ set Final time = 10 set Initial time = 0 set Time interval between each output = 0.1 subsection Error control - set Absolute error tolerance = 0.00000001 - set Relative error tolerance = 0.00000001 + # making this tolerance any lower prevents convergence in 5.4: + # this is fixed in 6.2 + set Absolute error tolerance = 1e-8 + set Relative error tolerance = 1e-8 end subsection Running parameters set Implicit function is linear = true set Implicit function is time independent = true - set Initial step size = 0.010000 - set Maximum number of nonlinear iterations = 10 + set Initial step size = 1e-6 + set Maximum number of nonlinear iterations = 30 set Maximum order of ARK = 5 - set Minimum step size = 0.000001 + set Minimum step size = 1e-7 + # A larger subspace, combined with looser tolerances, are required by 5.4 + set Anderson-acceleration subspace = 5 end -- 2.39.5