Skip to contents

MER5v2(), MER6v2() and RK6v4() are the explicit methods of OrdinaryDiffEqSIMDRK (orders 5, 6 and 6), whose stages Julia evaluates in SIMD pairs or quadruples; R evaluates them in turn, with the same tableau. ExplicitRK(tableau) runs any explicit Runge-Kutta tableau built by ExplicitRKTableau(A, c, alpha, order, alphaEEst, adaptiveorder, fsal) (alpha the weights of the solution, alphaEEst those of the embedded solution); the default is OrdinaryDiffEqExplicitRK's Tsitouras 5/4 tableau constructTsit5ExplicitRK().

Usage

MER5v2(stage_limiter = NULL, step_limiter = NULL, thread = NULL)

MER6v2(stage_limiter = NULL, step_limiter = NULL, thread = NULL)

RK6v4(stage_limiter = NULL, step_limiter = NULL, thread = NULL)

ExplicitRKTableau(
  A,
  c,
  alpha,
  order,
  alphaEEst = NULL,
  adaptiveorder = 0,
  fsal = FALSE
)

constructTsit5ExplicitRK()

ExplicitRK(tableau = constructTsit5ExplicitRK())

Arguments

stage_limiter, step_limiter, thread

See explicit_rk_methods.

A, c, alpha, alphaEEst

Tableau entries.

order, adaptiveorder

Orders of the method and its estimate.

fsal

Whether the last stage is the first of the next step.

tableau

An ExplicitRKTableau.

Value

An algorithm or a tableau.

Examples

prob <- ODEProblem(function(u, p, t) -u, 1, c(0, 1))
solve(prob, MER5v2())(1)
#> [1] 0.3678796
solve(prob, ExplicitRK())(1)
#> [1] 0.3678774