NVE energy conservation in neighbor rebuilds - #153
Open
laserkelvin wants to merge 4 commits into
Open
Conversation
Signed-off-by: Kelvin Lee <kinlongkelvi@nvidia.com>
Signed-off-by: Kelvin Lee <kinlongkelvi@nvidia.com>
Signed-off-by: Kelvin Lee <kinlongkelvi@nvidia.com>
Signed-off-by: Kelvin Lee <kinlongkelvi@nvidia.com>
Collaborator
Author
|
/ok to test 83b991e |
Contributor
Greptile SummaryThis PR switches neighbor-list rebuild detection to raw Cartesian displacement so periodic wrapping invalidates cached shifts.
Important Files Changed
Reviews (1): Last reviewed commit: "refactor(hooks): simplify rebuild import" | Re-trigger Greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ALCHEMI Toolkit Pull Request
Description
This PR closes #151, where NVE simulations with wrapped periodic boundaries eventually invalidate neighbor list caches once atoms are wrapped, but continue to compute the energy with the wrong set of periodic shifts.
The fix changes the rebuild check to use raw cartesian displacements instead
Type of Change
Related Issues
Changes Made
slowunit test that checks for NVE divergence with LJ after 1000 steps; this is less than the MWE in 🐛[BUG]: NVE energy drift with NeighborListHook(skin>0) + WrapPeriodicHook: position folds bypass the Verlet-skin rebuild check #151, but should be sufficient to show some kind of drift at that pointbatch_neighbor_list_rebuild_inplacefromnvalchemiopsTesting
make pytest)make lint)Checklist
Additional Notes
Tip
This repository uses Greptile, an AI code review service, to help conduct
pull request reviews. We encourage contributors to read and consider suggestions
made by Greptile, but note that human maintainers will provide the necessary
reviews for merging: Greptile's comments are not a qualitative judgement
of your code, nor is it an indication that the PR will be accepted/rejected.
We encourage the use of emoji reactions to Greptile comments, depending on
their usefulness and accuracy.