Repository navigation
fix(abacus): transform forces for left-handed SCF cells - #1065
SchrodingersCattt wants to merge 1 commit into
Conversation
Merging this PR will not alter performance
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1065 +/- ##
=======================================
Coverage 88.08% 88.09%
=======================================
Files 91 91
Lines 9685 9690 +5
=======================================
+ Hits 8531 8536 +5
Misses 1154 1154 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review. 📝 WalkthroughWalkthroughThe STRU reader can report when it reflects a left-handed cell. The SCF reader uses that flag to negate collected forces. A regression test checks the parsed coordinates and forces. ChangesABACUS SCF force transformation
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to The force transformation matches the coordinate correction for left-handed cells, so no material merge-blocking risk is identified. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)✅ Passed checks (4 passed)✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
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 |
f3f354c to
f116b43
Compare
Fixes #1061.
ABACUS normalizes left-handed STRU cells by reflecting the cell and Cartesian coordinates. Propagate that reflection to SCF force vectors so coordinates and forces remain in the same spatial representation. Add a regression test covering a left-handed cell with nonzero forces.
Tests: ABACUS test suite and ruff checks pass.
Summary by CodeRabbit