-
Notifications
You must be signed in to change notification settings - Fork 507
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 dplr: set the positions of WCs to those of the real atoms in end_of_step #4084
base: devel
Are you sure you want to change the base?
Conversation
WalkthroughWalkthroughThe changes involve renaming the Changes
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (2)
Files skipped from review as they are similar to previous changes (2)
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 as PR comments)
Additionally, you can add 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, codebase verification and nitpick comments (2)
source/lmp/fix_dplr.h (1)
47-47
: Incomplete Renaming DetectedThe method
post_integrate()
is still being referenced insource/lmp/fix_dplr.cpp
. Please ensure that all occurrences ofpost_integrate()
are updated toend_of_step()
to maintain consistency across the codebase.
- File:
source/lmp/fix_dplr.cpp
- Line: Reference found in
min_pre_exchange()
method.Analysis chain
Method Renaming Approved
The renaming of
post_integrate()
toend_of_step()
is appropriate for the described functionality. Ensure that all references to this method in the codebase are updated accordingly.The code changes are approved.
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify all references to `post_integrate` are updated to `end_of_step`. # Test: Search for the old function name. Expect: No occurrences. rg --type cpp -A 5 $'post_integrate'Length of output: 375
source/lmp/fix_dplr.cpp (1)
402-402
: Incomplete Renaming DetectedThe function
post_integrate
is still being referenced in themin_pre_exchange
method withinsource/lmp/fix_dplr.cpp
. Please update all occurrences ofpost_integrate
toend_of_step
to ensure consistency and prevent potential errors.
- File:
source/lmp/fix_dplr.cpp
- Line:
void FixDPLR::min_pre_exchange() { post_integrate(); }
Analysis chain
Method Implementation and Renaming Approved
The implementation of
end_of_step()
correctly updates the WC positions as intended. Ensure that all references to this method in the codebase are updated accordingly.The code changes are approved.
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify all references to `post_integrate` are updated to `end_of_step`. # Test: Search for the old function name. Expect: No occurrences. rg --type cpp -A 5 $'post_integrate'Length of output: 375
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## devel #4084 +/- ##
==========================================
- Coverage 83.01% 80.37% -2.64%
==========================================
Files 524 524
Lines 51639 51627 -12
Branches 3030 3030
==========================================
- Hits 42867 41497 -1370
- Misses 7825 9333 +1508
+ Partials 947 797 -150 ☔ View full report in Codecov by Sentry. |
b9d8499
to
24e1167
Compare
Thie PR aims at fixing #3679.
Fix dplr
assumes that the WCs exacts reside on the positions of the real atoms at the end of each step, and assigns the positions of the WCs according to the output of the DeepTensor models.The current implementation sets the positions of WCs to the positions of real atoms in the
post_integrate
function. As a result,get_valid_pairs
will raise error when using a restart file.This PR fixes this issue. Instead of residing the WCs on real atoms in
post_integrate
, it does so in theend_of_step
function.Summary by CodeRabbit
post_integrate
method topre_exchange
to better reflect its role in the simulation process.