Skip to content

P5 Exact decay ​

IDGroupTypeBackendsFigureProgram
P5PropertiesPCPU (gfortran, nvfortran, ifx; R8P and R4P, the orders in R8P); GPUnoselah_test_decay

Case and scope ​

decay=lambda integrates ψ′=g−λψ's decay exactly, the caller's residual the source alone (guide). The case checks the properties the theory gives the variant (notes/companions-pushers-pml.md §5): exactness for a frozen source at any λΔt, the explicit step at λ=0, exact static equilibria and stability of a coupled field–auxiliary pair at a stiff λΔt, and its order.

Setup ​

ItemValue
Frozen source5 cells, λΔt = 0.1, 1, 10, 103, 106, g=1, ψ0=3, 8 steps; exact g/λ+(ψ0−g/λ)e−λt
λ=03 steps against the same steps without decay; then λ the smallest subnormal
Coupled pairu′=−ψ+J (the field stepper), ψ′=σu−λψ (a companion with decay), σ=3, J=1/2
Equilibriumfrom u∗=λJ/σ, ψ∗=J, λΔt=50, 4 steps
Stabilityfrom (1,0), λΔt=50, 20 steps: with decay, and with −λψ in the residual (explicit)
Orderλ=2, from (1,0) to t=1, 16 to 128 steps; reference rk4, 105 steps

Program ​

bash
./exe/selah_test_decay

Results ​

CheckResultBound
frozen source, the largest relative error over every λΔt and step3.4e-16 … 1.0e-15 (ssp-54), every scheme10−13
λ=0bitwise the explicit step, every schemeexact
λ the smallest subnormal (λΔt/2 rounds to 0)bitwise the explicit step, no NaNexact
coupled equilibrium at λΔt=50kept, every scheme64 ε
stability at λΔt=50bounded with decay; the explicit stages blow up, every scheme—
coupled order1.01 (euler), 1.98 (ssp-22, ssp-33, lsrk-33), 2.00 (ssp-54, ssp-104, rk4, lsrk-54)min(p,2)±0.15

Four mutants each fail it: the stage exponent without its abscissa, φ1=1, the large-λ branch without the −1, every abscissa 1.

Findings ​

  • Second order, whatever the scheme. The exponential stage caps the order of the auxiliary field at 2: an established, stable construction chosen over higher-order variants that are new (the row-normalised Lawson variant of the research, order min(p,3), measured but unpublished) or have the wrong steady state (Lawson). Whether the PML's second-order error reaches the interior is a question for a reflection test in the field solver.

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