KuttaPRK2p5() is the fixed step fifth order method of Jackson and
Norsett with five stages arranged for two processors (the last two stages
are independent). QPRK98() is the adaptive 9(8) pair of Kovalnogov,
Fedorov, Karpukhina, Simos and Tsitouras, designed for quadruple precision
(here in double precision), with the PI controller of order 9 and FSAL.
Usage
KuttaPRK2p5(threading = TRUE)
QPRK98(stage_limiter = NULL, step_limiter = NULL, thread = NULL)
Arguments
- threading
Ignored (Julia's threading option of the parallel stages).
- stage_limiter
Stored only: as in Julia, the stages of QPRK98()
do not call it.
- step_limiter
Optional function(u, integrator, p, t) applied after
every accepted step.
- thread
Ignored.
Details
The stages are evaluated one after the other; threading and thread
are accepted for compatibility and do not change the results. As in
OrdinaryDiffEq's out of place method, KuttaPRK2p5() counts no function
evaluations in sol$stats$nf.
Examples
prob <- ODEProblem(function(u, p, t) c(u[2], -u[1]), c(0, 1), c(0, 1))
solve(prob, KuttaPRK2p5(), dt = 0.1)$u[[11]]
#> [1] 0.8414710 0.5403023
solve(prob, QPRK98(), reltol = 1e-10, abstol = 1e-10)$u[[2]]
#> [1] 0.04821943 0.99883677