C2 Storage forms
| ID | Group | Type | Backends | Figure | Program |
|---|---|---|---|---|---|
| C2 | Contracts | C | CPU (gfortran, nvfortran, ifx; R8P and R4P) | yes | selah_vv_forms |
Case and scope
A scheme with a low-storage form computes the same step in two registers. The two-register, Williamson 2N and Ketcheson forms store other coefficients and add the stage terms in another order. Over a run they must stay on the Butcher form's solution to round-off: otherwise a coefficient of the low-storage form, or the form's recipe in the stepper, is wrong.
Setup
| Item | Value |
|---|---|
| Pairs | euler, ssp-22, ssp-33: two-register; lsrk-33, lsrk-54: Williamson 2N; ssp-104: Ketcheson |
| Problem | periodic advection, 64 cells, central residual, CFL 0.5, a sine plus a jump |
| Steps | 40, through the stepper |
| Bound | $\max |
Program
bash
./exe/selah_vv_forms
SELAH_VV_DIR=exe/vv-data ./exe/selah_vv_forms # forms.datResults

The relative difference between each low-storage form and the Butcher form of the same scheme, step by step.
| Scheme | Form | Largest relative difference from the Butcher form, 40 steps |
|---|---|---|
euler | two-register | 0 |
ssp-22 | two-register | 8.01e-16 |
ssp-33 | two-register | 2.38e-15 |
lsrk-33 | Williamson 2N | 9.18e-16 |
lsrk-54 | Williamson 2N | 1.39e-15 |
ssp-104 | Ketcheson | 8.01e-15 |
Bound asserted: 1000 ε (the dashed line). A zero difference shows as 0.
Findings
- Every low-storage form stays within
of its Butcher form. The Ketcheson form, with 10 stages, is the furthest at . euler's two forms are bitwise identical. - The golden file pins every form's values separately (C4), so a change that kept the forms equal but moved both is caught there.