A5 Linear stability
| ID | Group | Type | Backends | Figure | Program |
|---|---|---|---|---|---|
| A5 | Accuracy | P | CPU (gfortran, nvfortran, ifx; R8P and R4P); GPU (A30, tests-nvf-oac) | yes | selah_vv_stability |
Case and scope
For butcher(scheme) itself, so it verifies the library's coefficients, not a textbook's.
What the case catches:
- a coefficient that breaks the order: the first
coefficients of must be ; - a wrong scheme: the limits on the axes must match the closed forms where they are known;
- a wrong SSP coefficient: an SSP scheme with coefficient
must be stable on the disc .
Setup
| Item | Value |
|---|---|
| Arithmetic | quadruple precision (R8P with nvfortran); the polynomial by Horner |
| Limits | bisection to $ |
| Closed forms | euler, ssp-22: |
| SSP disc | 720 points of the circle $ |
| Tolerance | coefficients and limits: |
Program
./exe/selah_vv_stability
SELAH_VV_DIR=exe/vv-data ./exe/selah_vv_stability # stability-<scheme>.dat (|R| on a grid), stability-summary.datResults

The boundary
| Scheme | Stages | Order | Real-axis limit | Imaginary-axis limit | SSP coefficient | Real limit / stages |
|---|---|---|---|---|---|---|
euler | 1 | 1 | -2.000000 | 0.000000 | 1.0000 | 2.0000 |
ssp-22 | 2 | 2 | -2.000000 | 0.000000 | 1.0000 | 1.0000 |
ssp-33 | 3 | 3 | -2.512745 | 1.732051 | 1.0000 | 0.8376 |
ssp-54 | 5 | 4 | -5.331473 | 3.278356 | 1.5082 | 1.0663 |
ssp-104 | 10 | 4 | -13.917047 | 4.921453 | 6.0000 | 1.3917 |
rk4 | 4 | 4 | -2.785294 | 2.828427 | — | 0.6963 |
lsrk-33 | 3 | 3 | -2.512745 | 1.732051 | — | 0.8376 |
lsrk-54 | 5 | 4 | -4.656757 | 3.340718 | — | 0.9314 |
The library's bounds
imag_axis_bound() and real_axis_bound() (selah_tableaux, the stepper) compute the two limits in the working precision: the imaginary one from selah_vv_stability), and with the closed forms (selah_test_rk_particles. PRISM's hard-coded imaginary-axis bound of SSP(5,4), 3.278, is the table's 3.278356.
Findings
- Every polynomial agrees with
up to , every closed-form limit matches, and every SSP scheme is stable on its disc. - lsrk-33 has the stability polynomial of ssp-33: three stages of third order leave no freedom.
- In single precision the imaginary axis is a matter of rounding. rk4 is tangent to
at the origin, and its R4P coefficients cross that line by about : strictly, no interval is left. Conversely, euler and ssp-22, which have no interval, gain one at the rounding scale (0.004 and 0.088 in R4P). Measured with the tolerance of the coefficients' rounding, the R4P limits agree with the R8P ones to (C7).