Skip to content

Load bubble radii before the adv_n branch in the EE source - #2121

Draft
sbryngelson wants to merge 1 commit into
MFlowCode:masterfrom
sbryngelson:wave1/ee-bubbles-uninit-rtmp
Draft

sbryngelson wants to merge 1 commit into
MFlowCode:masterfrom
sbryngelson:wave1/ee-bubbles-uninit-rtmp

Conversation

@sbryngelson

Copy link
Copy Markdown
Member

What

s_compute_bubble_EE_source filled Rtmp and Vtmp only in the .not. adv_n branch, but the R2Vav sum for bub_adv_src reads them whenever adap_dt is off. With adv_n = T and adap_dt = F the void-fraction source was built from an unwritten private array.

Fill Rtmp and Vtmp before the branch so both paths see the cell's radii and wall speeds.

Verification

All 65 Bubbles tests and the bubblecollapse_adap example pass against the existing goldens. 1D -> Bubbles -> adv_n=T (105673CA) is bit-identical to master, so the existing tests do not exercise a nonzero R^2 V contribution on this path.

Testing. Built with GPU offload (OpenMP, AMD) and ran the full test suite with this fix and three other independent fixes applied together: 729 tests in 4 shards, 0 failures (three shards on MI300A, one on MI250X).

Prepared with Claude Code (AI-assisted); I reviewed the change and ran the tests.

s_compute_bubble_EE_source filled Rtmp and Vtmp only in the
.not. adv_n branch, but the R2Vav sum for bub_adv_src reads them
whenever adap_dt is off. With adv_n = T and adap_dt = F the void
fraction source was built from an unwritten private array.

Fill Rtmp and Vtmp before the branch so both paths see the cell's
radii and wall speeds.

All 65 Bubbles tests and the bubblecollapse_adap example pass against
the existing goldens; 1D -> Bubbles -> adv_n=T (105673CA) is
bit-identical to master, so these tests do not exercise a nonzero
R^2 V contribution on this path.
@sbryngelson
sbryngelson requested a review from a team as a code owner November 3, 2026 03:26
@sbryngelson
sbryngelson requested review from wilfonba and removed request for a team November 3, 2026 03:26
@sbryngelson
sbryngelson marked this pull request as draft November 3, 2026 03:39
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

Claude Code Review

Head SHA: c6156ab

Files changed:

  • 1
  • src/simulation/m_bubbles_EE.fpp

Findings:
No issues found. Checked in step 4: src/simulation/m_bubbles_EE.fpp. Hoisting the Rtmp/Vtmp fill out of the .not. adv_n branch is correct: the .not. adap_dt R2Vav loop reads both arrays even when adv_n is true, and they were previously uninitialized there. Both arrays are in the private list and the loop is seq.

@codecov

codecov Bot commented Nov 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.90%. Comparing base (a03848a) to head (c6156ab).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2121   +/-   ##
=======================================
  Coverage   61.90%   61.90%           
=======================================
  Files          86       86           
  Lines       22948    22948           
  Branches     3386     3386           
=======================================
  Hits        14205    14205           
  Misses       6229     6229           
  Partials     2514     2514           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant