Explicit general linear methods that propagate the solution together
with an asymptotically correct estimate of its global (accumulated)
error, as GlobalDiffEq.jl. GLEE23() (3 stages, order 2), GLEE24()
(4 stages, order 2, both decoupling conditions; the recommended second
order method) and GLEE35() (5 stages, order 3) are the methods of
Constantinescu (2016), eqs. (4.6), (A.3) and (4.9) (PETSc's TSGLEE23,
TSGLEE24 and TSGLEE35); MM5GEE() is the scheme of Makazaga and Murua
(2003) on the Dormand-Prince 5(4) pair, which propagates an order 6
companion solution with three extra stages.
Details
Solving an ODEProblem with these methods returns an ordinary solution
whose sol$global_error holds the estimated global error at each saved
time (also global_error_estimate()). The per step increment of the
estimate is an asymptotically correct local error estimate and drives the
usual step size control, so the tolerances behave as for adaptive Runge
Kutta methods. Only explicit ODEs without a mass matrix are supported.
References
E. M. Constantinescu, Estimating global errors in time stepping, SIAM Journal on Numerical Analysis 54(6), 2016. J. Makazaga and A. Murua, New Runge-Kutta based schemes for ODEs with cheap global error estimation, BIT Numerical Mathematics 43, 2003.
Examples
prob <- ODEProblem(function(u, p, t) -u, 1, c(0, 1))
sol <- solve(prob, GLEE24(), reltol = 1e-6, abstol = 1e-8)
exp(-1) - sol$u[[length(sol$t)]] # the true global error
#> [1] -1.285651e-05
global_error_estimate(sol, length(sol$t))
#> [1] -1.274827e-05