Skip to content

P6 Leapfrog filter ​

IDGroupTypeBackendsFigureProgram
P6PropertiesPCPU (gfortran, nvfortran, ifx; R8P, R4P); GPU for selah_test_leapfrog (A30 and RTX 4070, C5); selah_vv_leapfrog host onlynoselah_vv_leapfrog, selah_test_leapfrog

Case and scope ​

What the Robert–Asselin–Williams filter must guarantee besides accuracy (A9): it damps the computational mode by the analytic factor, it conserves the three-level mean when α=1/2, and it leaves the data it should not touch alone.

Setup ​

PropertyHow it is checkedProgram
computational-mode dampingone step from the computational eigenvector multiplies history and state by the computational root of Williams's eq. (11), to 10−12, at three values of ωΔt; at ωΔt→0 the root is ν−1: a damping of 1−ν per step (0.8 for ν=0.2), none unfilteredselah_vv_leapfrog
three-level mean, α=1/2Un+Un+1 (history plus state after the step) equals Un+(Un−1+2ΔtR) to 10 ε at every one of 50 stepsselah_vv_leapfrog
a linear sequence is not filtered1, 2, 3 through one filtered step: unchanged; ADAM's filter, ν2(Un−Un+1), moves it by −0.1selah_test_leapfrog
ν=0 is the plain leapfrogthe kernel's unfiltered variant bitwise h=q, q=h+2Δtrselah_test_leapfrog

Program ​

bash
./exe/selah_vv_leapfrog ; ./exe/selah_test_leapfrog

Results ​

The computational factors match the roots to 5⋅10−16; the mean changes by at most 1.2⋅10−16 relative per step (6.9⋅10−8 in R4P, within 10 ε).

Findings ​

  • The filter damps the computational mode at once, at any ωΔt: 1−ν per step near 0. The plain leapfrog never damps it; its only control is the start-up's small excitation (≈Δt4/16 on an oscillation) or a periodic restart_history().
  • The mean-conserving filter is the most accurate one but unconditionally unstable on the imaginary axis (bound 0): leapfrog-raw takes α=0.53, Williams's compromise, stable up to ωΔt=0.4371.