Fix bc_x%ve3 never MPI-broadcast (duplicate ve2 instead)#1175
Fix bc_x%ve3 never MPI-broadcast (duplicate ve2 instead)#1175sbryngelson wants to merge 1 commit intoMFlowCode:masterfrom
Conversation
|
CodeAnt AI is reviewing your PR. Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
📝 WalkthroughWalkthroughA variable in the MPI user-input broadcast list is corrected by replacing a duplicate reference to Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Suggested labels
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Nitpicks 🔍
|
|
CodeAnt AI finished reviewing your PR. |
There was a problem hiding this comment.
Pull request overview
This PR fixes a critical bug in MPI broadcast configuration where bc_x%ve2 was duplicated instead of including bc_x%ve3, causing the third velocity component boundary condition to remain uninitialized on non-root ranks in multi-rank 3D simulations.
Changes:
- Corrected the MPI broadcast list to include
bc_x%ve3instead of the duplicatedbc_x%ve2
The bc_x velocity-end broadcast list has bc_x%ve2 duplicated where bc_x%ve3 should be. bc_y and bc_z rows are correct. Non-root ranks get uninitialized bc_x%ve3 in multi-rank 3D runs with x-boundary velocity BCs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
276a312 to
3ed586d
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1175 +/- ##
=======================================
Coverage 44.05% 44.05%
=======================================
Files 70 70
Lines 20498 20498
Branches 1990 1990
=======================================
Hits 9030 9030
Misses 10329 10329
Partials 1139 1139 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary
Severity: CRITICAL — non-root ranks get uninitialized
bc_x%ve3.File:
src/simulation/m_mpi_proxy.fpp, line 148The MPI broadcast list for x-boundary velocity-end parameters has
bc_x%ve2duplicated wherebc_x%ve3should be. Thebc_yandbc_zrows are correct.Before
After
Why this went undetected
Only manifests in multi-rank 3D runs with x-direction velocity boundary conditions that use the
ve3component — a narrow intersection of conditions.Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit
Fixes #1196