Skip to content

A5 Linear stability ​

IDGroupTypeBackendsFigureProgram
A5AccuracyPCPU (gfortran, nvfortran, ifx; R8P and R4P); GPU (A30, tests-nvf-oac)yesselah_vv_stability

Case and scope ​

For y′=λy a step multiplies y by R(z), z=λΔt. For an explicit tableau R is the polynomial R(z)=1+∑j=1sbTAj−11zj. The case computes R from 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 p+1 coefficients of R must be 1/j!;
  • 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 C must be stable on the disc |z+C|≤C.

Setup ​

ItemValue
Arithmeticquadruple precision (R8P with nvfortran); the polynomial by Horner
Limitsbisection to $
Closed formseuler, ssp-22: −2 and 0; ssp-33: −2.512745 and 3; rk4: −2.785294 and 22
SSP disc720 points of the circle $
Tolerancecoefficients and limits: max(10−9,1000ε(RP)); on the imaginary axis $

Program ​

bash
./exe/selah_vv_stability
SELAH_VV_DIR=exe/vv-data ./exe/selah_vv_stability     # stability-<scheme>.dat (|R| on a grid), stability-summary.dat

Results ​

Stability regions

The boundary |R(z)|=1 of every scheme. Left: the SSP schemes; ssp-104's region is the largest by far. Right: rk4 and the 2N schemes.

SchemeStagesOrderReal-axis limitImaginary-axis limitSSP coefficient CReal limit / stages
euler11-2.0000000.0000001.00002.0000
ssp-2222-2.0000000.0000001.00001.0000
ssp-3333-2.5127451.7320511.00000.8376
ssp-5454-5.3314733.2783561.50821.0663
ssp-104104-13.9170474.9214536.00001.3917
rk444-2.7852942.828427—0.6963
lsrk-3333-2.5127451.732051—0.8376
lsrk-5454-4.6567573.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 P(w)=|R(iy)|2−1 as a polynomial in w=y2, its coefficients of wj, 2j≤p, set to the exact 0 the order gives them (so that the rounding of the tableau's digits does not open or close an interval at the origin). They agree with this case's quadruple-precision bisection to 10−6 for every scheme (selah_vv_stability), and with the closed forms (3, 22, 0) in 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 ez up to zp, 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 |R|=1 at the origin, and its R4P coefficients cross that line by about 10−8: 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 3⋅10−6 (C7).

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