Fix s_axis QBMM buffer reflection azimuthal index#1363
Fix s_axis QBMM buffer reflection azimuthal index#1363sbryngelson merged 1 commit intoMFlowCode:masterfrom
Conversation
Code Review by Qodo
|
Claude Code ReviewHead SHA: 24f163b Files changed:
Findings[Correctness] Hardcoded In the modified hunk, the branch condition The problem is that A robust implementation should test the index directly rather than the physical coordinate: if (l < (p + 1)/2) then
pb_in(k, -j, l, q, i) = pb_in(k, j - 1, l + ((p + 1)/2), q, i)
mv_in(k, -j, l, q, i) = mv_in(k, j - 1, l + ((p + 1)/2), q, i)
else
pb_in(k, -j, l, q, i) = pb_in(k, j - 1, l - ((p + 1)/2), q, i)
mv_in(k, -j, l, q, i) = mv_in(k, j - 1, l - ((p + 1)/2), q, i)
end ifThis makes the split purely index-based (correct for any domain) and removes the dependency on the physical coordinate value and the |
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewⓘ The new review experience is currently in Beta. Learn more |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe PR fixes a bug in the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1363 +/- ##
==========================================
+ Coverage 64.88% 64.90% +0.01%
==========================================
Files 70 70
Lines 18251 18254 +3
Branches 1508 1508
==========================================
+ Hits 11842 11847 +5
+ Misses 5446 5444 -2
Partials 963 963 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Fixes #1357.
Summary
s_axis(), the QBMM buffer reflection block always usedl - ((p+1)/2)regardless ofz_cc(l), while the primitive variable reflection correctly branches onz_cc(l) < piz_cc(l) < pi, this read from an incorrect (potentially negative) azimuthal indexz_cc(l) < pibranch to thepb_in/mv_inQBMM block to mirror the primitive variable logicTest plan
bc_y%beg = -14) andz_cc(l) < picells exercises the previously broken branchSummary by CodeRabbit