-
Notifications
You must be signed in to change notification settings - Fork 516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(pt): keep mapping not none during lmp steps when nghost == 0 #4209
Conversation
📝 WalkthroughWalkthroughThe pull request introduces modifications to the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
source/api_cc/include/DeepPotPT.h (1)
341-341
: Approve the addition ofmapping_tensor
with a request for documentation.The addition of the
mapping_tensor
member variable is approved. It aligns with the PR objective of keeping the mapping not none during LMP steps when ghost is 0.However, to improve code maintainability and understanding:
- Please add a brief comment explaining the purpose and usage of this new member variable.
- Consider updating the class documentation to mention this new feature if it affects the overall behavior of the DeepPotPT class.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (2)
- source/api_cc/include/DeepPotPT.h (1 hunks)
- source/api_cc/src/DeepPotPT.cc (0 hunks)
💤 Files with no reviewable changes (1)
- source/api_cc/src/DeepPotPT.cc
🧰 Additional context used
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## devel #4209 +/- ##
==========================================
+ Coverage 83.47% 83.49% +0.02%
==========================================
Files 541 541
Lines 52487 52458 -29
Branches 3047 3047
==========================================
- Hits 43812 43800 -12
+ Misses 7729 7710 -19
- Partials 946 948 +2 ☔ View full report in Codecov by Sentry. |
…4237) fix errors mentioned in following pr: #4220 #4209 #4144 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced message passing logic in the computation process for improved efficiency. - Added new test functions to evaluate DeepMD model performance under various conditions. - **Bug Fixes** - Improved error handling and assertions in test cases to ensure robustness. - **Refactor** - Streamlined tensor operations in the communication process to enhance clarity and reduce unnecessary computations. - Removed outdated test cases related to neighbor list handling in the DeepPot class. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
enhancement on #4144
Summary by CodeRabbit
New Features
mapping_tensor
variable.compute
method to handle ghost atoms and support improved tensor creation logic.computew
methods to support both double and float types.Bug Fixes
translate_error
method for better exception management.