Repository navigation
Default the REST2 region to the perturbed atoms and their neighbours - #292
Merged
Merged
Conversation
This branch was previously deployed
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.
Previously, the REST2 region contained all atoms of the perturbable molecules unless a
rest2_selectionwas given. This PR adds anautodefault forrest2_selection, which selects the perturbed atoms (atoms whose element changes, including ghosts, and heavy atoms whose LJ parameters change) and the atoms withinrest2_bondsbonds of them (2 by default). Since torsions are only scaled when all four atoms are in the region, this includes the torsions about every bond to a perturbed atom, while keeping the region, and the energy change between windows, small.The resolved selection is logged and written to the config file, and is only used when REST2 is active. All atoms of the perturbable molecules can still be scaled with
rest2_selection=None, which REST2 runs started with the previous default need to restart.The perturbed-atom selection is now shared with the automatic GCMC region.