A9 Leapfrog
| ID | Group | Type | Backends | Figure | Program |
|---|---|---|---|---|---|
| A9 | Accuracy | P | CPU (gfortran, nvfortran, ifx; orders in R8P) | yes | selah_vv_leapfrog |
Case and scope
The leapfrog form (Schemes) with four filters, every run through the stepper, its start-up step included: the plain leapfrog (leapfrog-raw (
Setup
| Item | Value |
|---|---|
| Oscillation | |
| Advection | |
| Damped oscillation | |
| Bound | an observed order within 0.15 of the declared one on the finest halving (two-sided: a filter not applied, order 2 where 1 is declared, fails) |
| Amplification factors | history and state set to an eigenvector of the in-place step, one step through the stepper, at |
| Stability | at 0.99 and 1.01 times imag_axis_bound(), over the steps (at least 2000) that the faster growth needs to reach 100: the peak |
Program
./exe/selah_vv_leapfrog
SELAH_VV_DIR=exe/vv-data ./exe/selah_vv_leapfrog # leapfrog-orders.dat, leapfrog-modes.dat
scripts/run_vv.sh --only selah_vv_leapfrog # the data, then the table and the figures belowResults

| Filter | Problem | Error | Declared | Observed, 1st halving | 2nd | 3rd | 4th | Finest error |
|---|---|---|---|---|---|---|---|---|
leapfrog | oscillation | phase | 2 | 2.001 | 2.000 | 2.000 | 2.000 | 6.36e-07 |
leapfrog | advection | global | 2 | 2.001 | 2.000 | 2.000 | 2.000 | 4.82e-06 |
RA | oscillation | amplitude drift | 1 | 1.000 | 1.000 | 1.000 | 1.000 | 1.09e-04 |
RA | oscillation | amplitude at | 1 | 0.963 | 0.982 | 0.991 | 0.996 | 1.08e-04 |
RA | oscillation | phase | 2 | 1.995 | 1.997 | 1.999 | 1.999 | 8.47e-07 |
RA | advection | global | 1 | 0.997 | 0.995 | 0.998 | 0.999 | 5.27e-04 |
RAW-1/2 | oscillation | amplitude drift | 3 | 3.040 | 3.000 | 3.000 | 3.000 | 1.15e-10 |
RAW-1/2 | oscillation | amplitude at | 2 | 2.015 | 2.007 | 2.003 | 2.002 | 1.06e-07 |
RAW-1/2 | oscillation | phase | 2 | 1.995 | 1.998 | 1.999 | 1.999 | 7.41e-07 |
RAW-1/2 | advection | global | 2 | 1.999 | 1.999 | 1.999 | 2.000 | 5.64e-06 |
leapfrog-raw | oscillation | amplitude drift | — | 0.995 | 0.999 | 1.000 | 1.000 | 6.51e-06 |
leapfrog-raw | oscillation | amplitude at | — | 0.720 | 0.880 | 0.944 | 0.973 | 6.39e-06 |
leapfrog-raw | oscillation | phase | 2 | 1.995 | 1.998 | 1.999 | 1.999 | 7.48e-07 |
leapfrog-raw | advection | global | — | 1.810 | 1.504 | 1.204 | 1.056 | 3.18e-05 |
leapfrog | damped oscillation | global | 2 | 2.001 | 2.000 | 2.000 | 2.000 | 5.52e-07 |
RA: leapfrog-raw:

The roots of Williams's eq. (11) against
One step on the eigenvectors reproduces both roots to leapfrog-raw's 0.4371.
Findings
- Williams's orders hold through the stepper: phase 2 for every filter; amplitude drift 1 with RA and 3 with the mean-conserving filter;
leapfrog-rawdrifts at first order but 17 times less than RA. - The error at a fixed time is second order for every
, even . The stored state is the singly filtered value, displaced from the solution by . That bias does not grow, so it leaves the drift's third order intact but sets the error of the state at any time: RAW-1/2's amplitude error at is at 512 steps, its drift . Williams's third order is the order of the amplification factor, not of the stored value. leapfrog-rawhas no clean order on advection (1.81 down to 1.06): its amplitude error is first order with a constant, which overtakes the second-order phase error as the step decreases. - The start-up keeps the orders: every run above begins with the
ssp-22step. - A damped problem through the plain leapfrog keeps order 2 on a short horizon: its computational mode, unstable for any decay, starts at the round-off of the start-up.