Skip to contents

SSPRKMSVS32() and SSPRKMSVS43() are the strong stability preserving multistep methods of order 2 (three steps) and 3 (four steps) of OrdinaryDiffEqSSPRK, started with two and three Heun steps; they take fixed steps (dt). Both take the limiters of explicit_rk_methods.

Usage

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

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

Arguments

stage_limiter, step_limiter, thread

See explicit_rk_methods.

Value

An algorithm object.

Examples

prob <- ODEProblem(function(u, p, t) -u, 1, c(0, 1))
solve(prob, SSPRKMSVS43(), dt = 0.01)(1)
#> [1] 0.3678794