Skip to content

Schemes ​

SELAH's L0 layer holds the coefficients: every scheme in the form its source publishes, the other forms derived from it, and every value verified by a test. Nothing in this layer touches a field. The kernels (L1) and the stepper (L2) read these coefficients.

Runge–Kutta schemes ​

NameStagesOrderSSP coefficientPrimary formOther formsSource
euler111ButcherShu–Osher, two-registerforward Euler
ssp-22221ButcherShu–Osher, two-registerShu & Osher (1988)
ssp-33331ButcherShu–Osher, two-registerShu & Osher (1988)
ssp-54541.508180049Shu–OsherButcherSpiteri & Ruuth (2002); 15 digits of Isherwood, Grant & Gottlieb (2018)
ssp-1041046Shu–OsherButcherKetcheson (2008)
rk444—Butcher—Kutta (1901)
lsrk-3333—Williamson 2NButcherWilliamson (1980)
lsrk-5454—Williamson 2NButcherCarpenter & Kennedy (1994), NASA TM-109112

The SSP coefficient is computed from the Shu–Osher form (ssp_coefficient), never typed in. It is the minimum of αik/βik over the coefficients SELAH stores: another Shu–Osher representation of the same tableau can give a larger value. For the catalogue the stored forms are the optimal ones, so the value is the scheme's SSP coefficient (P2). For a tableau built by hand, 0 means "not computed" as well as "not SSP".

The names are the constants SCHEME_EULER, SCHEME_SSP_22, …, SCHEME_LSRK_54; RK_SCHEMES lists them all. The entries of RK_SCHEMES are fixed-length strings padded with blanks: trim them before passing them on. An unknown name gives a tableau of 0 stages.

The coefficient forms ​

For an autonomous system u′=F(u), with Yi the stages:

  • Butcher: Yi=un+Δt∑jaijF(Yj), un+1=un+Δt∑jbjF(Yj), c=A1. The form the order conditions and the reflux weights bj are stated in.
  • Shu–Osher: Y1=un, Yi=∑k<i(αikYk+ΔtβikF(Yk)), un+1=Ys+1. With αik,βik≥0 each stage is a convex combination of forward-Euler steps, and the SSP coefficient is minαik/βik.
  • Two-register Shu–Osher: Yi+1=aiY1+biYi+ciΔtF(Yi): only un and the current stage are kept. These are ADAM's runge-kutta-1/2/3 (ark, brk, crk).
  • Williamson 2N: ΔQi=AiΔQi−1+ΔtF(Yi), Yi+1=Yi+BiΔQi.

runge-kutta-2 and runge-kutta-3 of ADAM are ssp-22 and ssp-33 in two-register form: the same methods, with less storage and no access to the per-stage residuals.

Storage ​

registers_needed(scheme, form) counts the field-sized buffers a step needs besides the solution, the residual buffer included:

FormBuffersSchemes
FORM_BUTCHERs + 1 (stage state + s residuals)every RK scheme
FORM_SHU_OSHER_2R2euler, ssp-22, ssp-33
FORM_WILLIAMSON_2N2lsrk-33, lsrk-54
FORM_KETCHESON_2R2ssp-104
FORM_SPLITTING1every splitting scheme

ssp-104 is the reason the low-storage forms matter. In Butcher form it needs 11 buffers, but 2 in Ketcheson's. Its effective SSP coefficient per stage is 0.6, against 0.30 for ssp-54.

Every tableau ​

Printed from the library itself (docs/examples/src/tableaux.F90, regenerated with the documentation):

text
$ tableaux
euler: 1 stages, order 1 (c | A, then b)
  0.000000 |  0.000000
             1.000000

ssp-22: 2 stages, order 2 (c | A, then b)
  0.000000 |  0.000000
  1.000000 |  1.000000
             0.500000  0.500000

ssp-33: 3 stages, order 3 (c | A, then b)
  0.000000 |  0.000000
  1.000000 |  1.000000
  0.500000 |  0.250000  0.250000
             0.166667  0.166667  0.666667

ssp-54: 5 stages, order 4 (c | A, then b)
  0.000000 |  0.000000
  0.391752 |  0.391752
  0.586080 |  0.217669  0.368411
  0.474542 |  0.082692  0.139959  0.251892
  0.935011 |  0.067966  0.115035  0.207035  0.544975
             0.146812  0.248483  0.104259  0.274439  0.226007

ssp-104: 10 stages, order 4 (c | A, then b)
  0.000000 |  0.000000
  0.166667 |  0.166667
  0.333333 |  0.166667  0.166667
  0.500000 |  0.166667  0.166667  0.166667
  0.666667 |  0.166667  0.166667  0.166667  0.166667
  0.333333 |  0.066667  0.066667  0.066667  0.066667  0.066667
  0.500000 |  0.066667  0.066667  0.066667  0.066667  0.066667  0.166667
  0.666667 |  0.066667  0.066667  0.066667  0.066667  0.066667  0.166667  0.166667
  0.833333 |  0.066667  0.066667  0.066667  0.066667  0.066667  0.166667  0.166667  0.166667
  1.000000 |  0.066667  0.066667  0.066667  0.066667  0.066667  0.166667  0.166667  0.166667  0.166667
             0.100000  0.100000  0.100000  0.100000  0.100000  0.100000  0.100000  0.100000  0.100000  0.100000

rk4: 4 stages, order 4 (c | A, then b)
  0.000000 |  0.000000
  0.500000 |  0.500000
  0.500000 |  0.000000  0.500000
  1.000000 |  0.000000  0.000000  1.000000
             0.166667  0.333333  0.333333  0.166667

lsrk-33: 3 stages, order 3 (c | A, then b)
  0.000000 |  0.000000
  0.333333 |  0.333333
  0.750000 | -0.187500  0.937500
             0.166667  0.300000  0.533333

lsrk-54: 5 stages, order 4 (c | A, then b)
  0.000000 |  0.000000
  0.149659 |  0.149659
  0.370401 | -0.008809  0.379210
  0.622256 |  0.401178 -0.601877  0.822955
  0.958282 | -0.190430  0.813823 -0.364561  0.699450
             0.005594  0.344743  0.028912  0.467694  0.153057

strang: 3 flows, order 2 (partition, fraction of the step)
  1  0.500000
  2  1.000000
  1  0.500000

yoshida-4: 7 flows, order 4 (partition, fraction of the step)
  1  0.675604
  2  1.351207
  1 -0.175604
  2 -1.702414
  1 -0.175604
  2  1.351207
  1  0.675604

blanes-moan-s6: 13 flows, order 4 (partition, fraction of the step)
  1  0.079204
  2  0.209515
  1  0.353173
  2 -0.143852
  1 -0.042065
  2  0.434337
  1  0.219377
  2  0.434337
  1 -0.042065
  2 -0.143852
  1  0.353173
  2  0.209515
  1  0.079204

blanes-moan-s10: 21 flows, order 6 (partition, fraction of the step)
  1  0.050263
  2  0.148816
  1  0.413514
  2 -0.132386
  1  0.045080
  2  0.067308
  1 -0.188055
  2  0.432666
  1  0.541961
  2 -0.016405
  1 -0.725526
  2 -0.016405
  1  0.541961
  2  0.432666
  1 -0.188055
  2  0.067308
  1  0.045080
  2 -0.132386
  1  0.413514
  2  0.148816
  1  0.050263

butcher_tableau%b_hat, the embedded weights of a pair, is reserved: no scheme of the catalogue has one, and it stays unallocated.

Splitting schemes ​

For u′=F1(u)+F2(u), a step is the product of the sub-flows of the two partitions, each over a fraction of Δt. Every scheme is a palindrome, stored as its half sequence, so its order is even:

NameFlowsOrderSource
strang32Strang (1968)
yoshida-474Yoshida (1990), the triple jump
blanes-moan-s6134Blanes & Moan (2002), S6
blanes-moan-s10216Blanes & Moan (2002), S10

The flows apply left to right, flow 1 first, and splitting(name, first=2) starts with partition 2. Through the stepper a flow is one forward-Euler step of its partition, yp+=ckΔtRp. That is the exact flow of partition p only when Rp does not depend on partition p itself, as with the positions and momenta of a separable Hamiltonian. Otherwise the composition is first order, whatever its declared order (A4, Tutorial 6).

Verification ​

WhatCase
the order conditions, in quadruple precisionA1
the observed orders, scalar problems, through the stepper, splittingsA2, A3, A4
the stability regionsA5
the SSP coefficients and strong stabilityP2, P1
ADAM's coefficients, bitwiseC1

GPL-3.0-or-later, BSD-2-Clause, BSD-3-Clause or MIT, at your choice