Skip to content

A3 Orders through the stepper ​

IDGroupTypeBackendsFigureProgram
A3AccuracyPCPU (gfortran, nvfortran, ifx); GPU (A30, tests-nvf-oac)yesselah_test_stepper, selah_test_stepper_ranks

Case and scope ​

The same order, now through everything a solver uses: the stepper, its storage forms, the box kernels, a multi-block field and a caller that fills ghost cells and evaluates the residual. Every scheme runs in every form it has: Butcher, Butcher with stages on q, two-register, Williamson 2N and Ketcheson.

Setup ​

ItemValue
Problemut+ux=0, periodic on [0,1], u0=sin⁡2πx
Grid4 blocks of 16 cells, 1 ghost cell, layout V_FIRST; FUNDAL arrays (device memory in a device build)
Residualcentral flux form, Ri=−(ui+1−ui−1)/(2Δx), written by the caller on the device
Referencethe exact semi-discrete solution sin⁡2π(x−ct), c=sin⁡(2πΔx)/(2πΔx): the error is the time integrator's alone
Stepsto t=0.25; 16, 32, 64, 128 steps (8, …, 64 for order 4)
Boundobserved order of the last halving at least p−0.2

Fields of rank 1 to 4 ​

selah_test_stepper_ranks takes the same orders through the stepper's rank-k fronts (Stepper).

ItemValue
Fieldsseven shapes: scalar (i), (i, j), (i, j, k), (i, j, k, b) (two blocks, a box_range box), and two components (v, i), (v, i, j), (v, i, j, k); 3 interior cells per dimension, 1 ghost cell; a pointer of the field's rank over contiguous FUNDAL storage
Problemy′=−y2 cell by cell (no space operator), y0=1+0.01n; exact 1/(1/y0+t)
Stepsto t=0.5; 16, 32, 64, 128 steps (8, …, 64 for order 4)
Splittingsthe oscillator q′=p, p′=−q cell by cell on the shapes with components, to t=1
Boundobserved order of the last halving at least p−0.2 (R8P builds)

Program ​

bash
./exe/selah_test_stepper
SELAH_VV_DIR=exe/vv-data ./exe/selah_test_stepper      # stepper-orders.dat, telescoping.dat
./exe/selah_test_stepper_ranks                         # the rank-k fronts

Results ​

Orders through the stepper

Error at t=0.25 against the number of steps, Butcher form. Every form of every scheme is in the table.

SchemeFormDeclaredObserved, 1st halving2nd3rdFinest error
eulerButcher11.0251.0141.0070.009646
eulerButcher, stages on q11.0251.0141.0070.009646
eulertwo-register11.0251.0141.0070.009646
ssp-22Butcher22.0002.0002.0003.92e-05
ssp-22Butcher, stages on q22.0002.0002.0003.92e-05
ssp-22two-register22.0002.0002.0003.92e-05
ssp-33Butcher32.9993.0003.0001.20e-07
ssp-33Butcher, stages on q32.9993.0003.0001.20e-07
ssp-33two-register32.9993.0003.0001.20e-07
ssp-54Butcher44.0004.0004.0012.18e-09
ssp-54Butcher, stages on q44.0004.0004.0012.18e-09
ssp-104Butcher44.0014.0014.0002.62e-10
ssp-104Butcher, stages on q44.0014.0014.0002.62e-10
ssp-104Ketcheson44.0014.0014.0002.62e-10
rk4Butcher44.0003.9994.0004.71e-09
rk4Butcher, stages on q44.0003.9994.0004.71e-09
lsrk-33Butcher32.9993.0003.0001.20e-07
lsrk-33Butcher, stages on q32.9993.0003.0001.20e-07
lsrk-33Williamson 2N32.9993.0003.0001.20e-07
lsrk-54Butcher44.0014.0004.0011.88e-09
lsrk-54Butcher, stages on q44.0014.0004.0011.88e-09
lsrk-54Williamson 2N44.0014.0004.0011.88e-09

Findings ​

  • Every scheme reaches its order in every form, and the forms of a scheme agree in their errors to round-off (C2).
  • stages_on_q changes no digit (C3).
  • At every rank from 1 to 4, every scheme reaches its order in every form, and every splitting its order on the shapes with components. The rank-k run is bitwise the rank-5 run of the same data.
  • The same program checks the stage contract and the conservation identity (C3, P4), on the host and on the A30.

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