Skip to content

C2 Storage forms ​

IDGroupTypeBackendsFigureProgram
C2ContractsCCPU (gfortran, nvfortran, ifx; R8P and R4P)yesselah_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 ​

ItemValue
Pairseuler, ssp-22, ssp-33: two-register; lsrk-33, lsrk-54: Williamson 2N; ssp-104: Ketcheson
Problemperiodic advection, 64 cells, central residual, CFL 0.5, a sine plus a jump
Steps40, through the stepper
Bound$\max

Program ​

bash
./exe/selah_vv_forms
SELAH_VV_DIR=exe/vv-data ./exe/selah_vv_forms      # forms.dat

Results ​

Forms

The relative difference between each low-storage form and the Butcher form of the same scheme, step by step.

SchemeFormLargest relative difference from the Butcher form, 40 steps
eulertwo-register0
ssp-22two-register8.01e-16
ssp-33two-register2.38e-15
lsrk-33Williamson 2N9.18e-16
lsrk-54Williamson 2N1.39e-15
ssp-104Ketcheson8.01e-15

Bound asserted: 1000 ε (the dashed line). A zero difference shows as 0.

Findings ​

  • Every low-storage form stays within 10−14 of its Butcher form. The Ketcheson form, with 10 stages, is the furthest at 8⋅10−15. 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.

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