Repository navigation
AMR follow-ups: reflux corrects alt_soundspeed, 6-equation and HLL Method 1 sources; per-level memory table - #2519
sbryngelson wants to merge 9 commits into
Conversation
|
Checks on Frontier for the opening push:
More AMR follow-ups will land in this PR before it goes ready. (Posted with Claude Code.) |
|
Claude Code Review Head SHA: 007153a No review was produced. Claude ran but wrote no review (Claude step: failure). Run and transcript: https://github.com/MFlowCode/MFC/actions/runs/45894627720 |
|
@claude full review |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2519 +/- ##
==========================================
- Coverage 66.59% 66.57% -0.02%
==========================================
Files 112 112
Lines 31558 31635 +77
Branches 4856 4869 +13
==========================================
+ Hits 21015 21062 +47
- Misses 6561 6580 +19
- Partials 3982 3993 +11 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Fix for the four Frontier (CCE) failures, all one internal compiler error ("Subtree parent problem", ftn-7991) in
Also in this push: the #2502 note in (Posted with Claude Code.) |
…on internal energies' alpha_k*p*div(u) with the volume fractions; shear-layer goldens
…uid interface-alpha register channels; interface golden
…vice and host totals on GPU builds
…ity loss; face_bound runs through it (MFlowCode#2502)
…CC/OpenMP internal compiler error on the side loop)
42723cc to
ad2d861
Compare
MFlowCode#2312) Level 2 joins across the seam and covers y = 13..44 without the unrefined strip; amr.md notes that the tag buffer usually gives the two sides equal extents.
|
Merged upstream master (includes #2486), which brings the regenerated goldens of F1BD319C and 872A4241 that failed on the previous head. #2312 (oblique seam crossings): nothing to fix; a regression test is added.
#2496 item 3 (tile cost model): tried, not kept.
(Posted with Claude Code.) |
Lines of Code
|
Contribution Policy
All contributions are expected to demonstrate:
If these expectations are not met, we would prefer to implement the changes ourselves rather than spend time reviewing low-effort submissions.
Summary
The remaining AMR follow-ups, in one PR. More items land here as they are done; the list below is what is in it now.
Closes #2503, #2490 and #2502. Part of #2498 (its remaining item, the rest of #2449).
1. Reflux: the rest of the volume-fraction source correction (#2503, #2490)
#2505 refluxes the volume fractions with their
alpha*div(u)correction. The same face velocity enters three more terms, which the reflux now corrects with the flux too. Each correction uses the outside coarse cell's own state, rebuilt from its conserved variables at apply time.alt_soundspeed. The volume fractions also carry+K*div(u)on the first and-K*div(u)on the last. K = a1 a2 (B2 - B1)/(a1 B2 + a2 B1), from the mixture pressure ands_phase_bulk_modulus.-alpha_k p div(u)(AMR, 6-equation model: internal-energy reflux omits the alpha_k p Δu source correction (seam error converges at first order) #2490).adv_src_mode_alpha_iface). The source isu*(alpha*_l - alpha*_r)/dxwith each fluid's interface alpha, so the registers carry one channel per fluid. The coefficient is the outside cell's own normal velocity.f_amr_usrc_coefreturns the coefficient of the face velocity in each equation's rhs, so one update carries both corrections. The level ≥ 2 to parent state reflux now gives each GPU thread one transverse cell and walks the equations: it reads the outside cells' state before writing them. Single-fluid runs are unaffected.2. Memory table (#2498, the rest of #2449)
3. Sedov WENO5 NaN (#2502)
Reproduced on master: on a uniform 256³ octant, WENO5 +
mp_wenogoes NaN at the collapsing centre (t = 2.4e-3), andface_bound = 1or2runs it to t = 0.02. That is the known missing positivity safeguard (#2469), not anmp_wenodefect. The Sedov "Limits" note invalidation_amr.mdnow says so and points atface_bound. Docs only.Verification
Shear test (#2490's case). A steady shear u = 0.5 sin(2 pi y) of a uniform two-fluid mixture through a static 2:1 block; the exact solution keeps alpha = 0.5. Max |alpha_1 - 0.5| on level 0 (AMD CPU):
alt_soundspeedThe level-0 seam error goes from first to second order, and is 4× and 26× smaller at N = 128.
New goldens. Each fails on a #2505 build, using the same case files and comparing every output file:
AMR -> 2D -> two-fluid shear layer -> alt_soundspeed(4E535E36)... -> 6eq(CDD17C4E)AMR -> 1D -> two-fluid -> stiffened gas at a static block face -> HLL(49E41590)The shear-layer jump sits inside a coarse cell (y = 0.51), so the fine and coarse face velocities differ at the block's x-faces. With the jump on a coarse face the flow is exactly steady and nothing would be tested.
Suite. Full AMR suite 136/136 on the AMD CPU build and 136/136 on MI250X after rebasing onto master (Slurm 6002966, builds exit 0). No existing golden changes: none of them has a face velocity that varies along a block face.
./mfc.sh precheck: pass.Memory table.
AMR -> 2D -> multi-level static np=2 -> rank_time_wrton 2 ranks prints, per level, 0.122 MiB store, of which 0.044 MiB ghost layers (36 %), and 0.007 MiB registers; the GPU build adds the device and host totals.Made with Claude Code.