Appearance
EGLM reflux leaves B alone
| ID | Group | Milestone | Type | Backends | Figure | Regression |
|---|---|---|---|---|---|---|
| G3a, G3b | Seam accuracy and divergence | M6 (#68) · G3a, G3b; #78 (follow-up) | P | CPU, FNL (G3a table: FNL) | yes | blast-amr-limiter |
Case and scope
On a static 2:1 grid, EGLM's
G3a separates them by running the field loop with sixth-order ghosts (C1, D1) and with the reflux on, off and under reflux_policy = troubled (E2). G3b fixes the cause and checks that the fix keeps the regressions, the MV-5 orders and the multirealm suite.
What the case catches:
- a reflux that breaks EGLM's source/flux cancellation:
on the refined grid must stay within a small factor of the uniform level; - a fix that changes GLM or the conserved variables: GLM must be unchanged, and the regression goldens must hold.
Models and numerics
| Item | Choice | Code |
|---|---|---|
| Equations | ideal MHD, glm_ch 4.0, glm_alpha 0.18, glm_damping_length 1.0 | GLM, EGLM; add_eglm_sources, adam_flume_cpu_mhd_eglm_kernels.F90; add_eglm_sources_dev, adam_flume_fnl_mhd_eglm_kernels.F90 |
| Space, time | WENO5 flux splitting on characteristic variables; SSP Runge–Kutta 5 stages, CFL 0.4 | as in AD |
| Seam operators | default (mean + tricubic) or lagrange6 + quintic | C1, D1 |
| Reflux (G3a) | on (always), off, or troubled (flags no face of this smooth loop, so it equals the reflux off bit for bit) | apply_reflux_to_stage_forest, flag_troubled_seam_cells, adam_flume_fnl_object.F90 |
| Reflux under EGLM (G3b, the fix) | the flux mismatch of | apply_reflux_to_stage_forest, reflux_stage, adam_flume_cpu_object.F90 and adam_flume_fnl_object.F90 |
Initial and boundary conditions
| Item | Value |
|---|---|
| Case | the A2 field loop of AD: |
| Initial condition | field loop, radius 0.3, |
| Grid | refined |
| Boundaries | periodic in extrapolation in |
| Final time | |
| Ranks | 2 |
| MV-5 | the linear-wave orders of order of accuracy under EGLM |
| Regressions | the FLUME regression suite on CPU and FNL; the one case with EGLM across 2:1 seams is blast-amr-limiter |
| Multirealm | the forest seams suite |
Input files
| File | Role |
|---|---|
src/tests/flume/verification/amr-divb/make_amr_divb.py loop | the field loop inputs (--cleaning glm or eglm, --seam-ghost-fill, --seam-restriction, --reflux-policy, --no-reflux) |
src/tests/flume/verification/amr-divb/amr_divb_oracle.py loop | the |
src/tests/flume/verification/amr-divb/check.sh --legs loop | the field loop, GLM and EGLM, refined against uniform |
src/tests/flume/regression/blast-amr-limiter/input.ini | the regression case with EGLM across 2:1 seams (golden digest, rtol |
src/tests/flume/regression/run.sh | the regression suite |
src/tests/flume/verification/make_doc_runs.sh <runs> divb (FNL), make_doc_figures.py --only field-loop-seams | re-runs the six field loops with a checkpoint every 20 steps |
bash
cd src/tests/flume/verification/amr-divb && ./check.sh --legs loop
FLUME_EXE=$PWD/../../../../../exe/adam_flume_fnl ./check.sh --legs loopResults

FNL, with the G3b reflux: the A2 field loop under GLM and EGLM, refined
G3a, the cause.
| Seam operators, reflux | EGLM (× uniform) | GLM (× uniform) |
|---|---|---|
| uniform N = 128 | ||
default, always | ||
default, off (= troubled) | ||
lagrange6 + quintic, always | ||
lagrange6 + quintic, off (= troubled) | troubled) |
G3b, the fix. EGLM, default seam operators, refined
| EGLM, reflux | × uniform | |
|---|---|---|
| all components | 70 | |
| all but B (G3b) | 3.3 | |
| all but B and | 3.4 | |
| none | 3.4 |
FNL reproduces the table: EGLM
Regressions. The FLUME regression suite passes on CPU and FNL. blast-amr-limiter moves inside its digest tolerance (rtol
- step 0 is identical, and
(zero in 2-D) does not move; - at step 100 seven of 26 digest rows differ (
r,ru,rv,rE,bx,by,psi), the largest byrelative on CPU and on FNL; - the integrals drift as in the golden:
to round-off ( ), the rest at the golden's levels ( , , B , ), set by the blast's boundaries and EGLM's non-conservative sources, not by the reflux.
Related cases: AD is the A2 case; E2 measures the conservation cost of troubled; the uniform-grid EGLM is EGLM cleaning; the loop itself is field loop.
Findings
- The reflux causes #78, not the ghosts. With the default operators and no reflux, EGLM's
is 3.4 times its uniform level instead of 70; sixth-order ghosts do not help (106 with the reflux, 11.5 without). GLM is insensitive (1.6 to 2.3 times in every row). - Mechanism (inferred from G3a and G3b, not measured directly). EGLM's Derigs source
cancels, on a uniform grid, the that the flux divergence generates. The reflux corrects a coarse skin cell by the flux mismatch after the step, but the source of that step saw the coarse fluxes' divergence: the correction changes the discrete divergence without the matching source term, and the cancellation fails at the refluxed cells. - Refluxing B buys a conservation EGLM does not have. Under EGLM the induction equation carries the source
, so is not a conserved integral. The EGLM reflux therefore corrects , , and and leaves alone, on CPU and FNL; GLM still refluxes . #78 drops from 70 to 3.3 times the uniform level. - The cancellation needs the centred derivative of the cell values. Taking the source divergence from the
face fluxes instead, , keeps the MV-5 orders but raises EGLM's uniform 47 times ( ).