A verified catalogue
Eight Runge–Kutta schemes and four splittings. Order conditions in quadruple precision, stability regions, SSP coefficients, all checked against closed forms and published values.
Schemes
Time integrators as stage-wise operators for block-structured field solvers, on CPUs and GPUs, in modern Fortran. Every claim verified.
Every scheme the public API exports: pass the constant to stepper%initialize with one of its storage forms (registers in brackets). Schemes has the tableaux and their derivations.
| Runge–Kutta | Name | Stages | Order | SSP coefficient | Storage forms | Source |
|---|---|---|---|---|---|---|
SCHEME_EULER | euler | 1 | 1 | 1 | Butcher (2), two-register (2) | forward Euler |
SCHEME_SSP_22 | ssp-22 | 2 | 2 | 1 | Butcher (3), two-register (2) | Shu & Osher (1988) |
SCHEME_SSP_33 | ssp-33 | 3 | 3 | 1 | Butcher (4), two-register (2) | Shu & Osher (1988) |
SCHEME_SSP_54 | ssp-54 | 5 | 4 | 1.508180049 | Butcher (6) | Spiteri & Ruuth (2002) |
SCHEME_SSP_104 | ssp-104 | 10 | 4 | 6 | Butcher (11), Ketcheson (2) | Ketcheson (2008) |
SCHEME_RK4 | rk4 | 4 | 4 | — | Butcher (5) | Kutta (1901) |
SCHEME_LSRK_33 | lsrk-33 | 3 | 3 | — | Butcher (4), Williamson 2N (2) | Williamson (1980) |
SCHEME_LSRK_54 | lsrk-54 | 5 | 4 | — | Butcher (6), Williamson 2N (2) | Carpenter & Kennedy (1994) |
| Splitting | Name | Flows | Order | Storage form | Source |
|---|---|---|---|---|---|
SCHEME_STRANG | strang | 3 | 2 | splitting (1) | Strang (1968) |
SCHEME_YOSHIDA_4 | yoshida-4 | 7 | 4 | splitting (1) | Yoshida (1990) |
SCHEME_BLANES_MOAN_S6 | blanes-moan-s6 | 13 | 4 | splitting (1) | Blanes & Moan (2002), S6 |
SCHEME_BLANES_MOAN_S10 | blanes-moan-s10 | 21 | 6 | splitting (1) | Blanes & Moan (2002), S10 |
SCHEME_LIE | lie | 2 | 1 | additive splitting only (additive_splitting) | Trotter (1959) |
Build the library and run the verification programs, or pull SELAH into your own project.
git clone https://github.com/szaghi/SELAH && cd SELAH
fobis fetch # PENF, FUNDAL (and GIDEON, for the tests)
fobis build --mode static-gnu # lib/gnu/static/libselah.a
fobis build --mode tests-gnu && bash scripts/run_tests.sh # the verification programs# fobos of your project; then: fobis fetch && fobis build
[dependencies]
deps_dir = src/third_party
PENF = https://github.com/szaghi/PENF :: branch=master # SELAH's own dependencies: fobis fetch is not transitive
FUNDAL = https://github.com/szaghi/FUNDAL :: branch=main
SELAH = https://github.com/szaghi/SELAH :: branch=main# fpm.toml of your project
[dependencies]
SELAH = { git = "https://github.com/szaghi/SELAH", branch = "main" }One step, driven stage by stage (the whole program):
use selah
type(stepper) :: st
call st%initialize(SCHEME_SSP_54, FORM_BUTCHER, lb=lbound(q), ub=ubound(q))
call st%begin_step(bx, q)
do k=1, st%stages()
call st%begin_stage(k, bx, dt, q)
u => st%stage_state() ; r => st%rhs_register()
call fill_ghosts(u) ! yours
call residual(u, r) ! yours
call st%end_stage(k, bx, dt, q)
enddo
call st%finish_step(bx, dt, q)Tireless Rubber Duck & Professional Pedant @ Anthropic
AI pair programmer; checks the order conditions so humans don't have to, and has an opinion on every comma.
SELAH is available under your choice of license.
| License | SPDX | File |
|---|---|---|
| GNU General Public License v3 | GPL-3.0-or-later | LICENSE.gpl3.md |
| BSD 2-Clause | BSD-2-Clause | LICENSE.bsd-2.md |
| BSD 3-Clause | BSD-3-Clause | LICENSE.bsd-3.md |
| MIT | MIT | LICENSE.mit.md |