Added optional additional rejection criteria of walkers based on nearest neighbour distance #29
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.
When using machine learned potentials they often predict nonsensical energies at very small interatomic distances. I've been using a rejection criteria to prevent these unphysical configurations ruining a nested sampling run. The user supplies a minimum nearest neighbour distance (
min_nn_dis
) and if an initial walker is generated with a nearest neighbour distance less than this value, the walker is rejected. The criteria only applies to the initial generation but can be applied to the entire run by settingcalc_nn_dis
to true. The rejection criteria, and associated calculation, is optionally enabled and doesn't impact a normal run. I added comments and an explanation of the keywords for documentation.I also formatted the intro.html doc page from "MC and MD step algorithms" onwards to make it a bit easier to read, I didn't change any content. The page that's up currently on the doc page is broken but when I initially forked and compiled without any modification it removed the warnings so I think that page just needs to be recompiled. I can remove my formatting if it is not welcome.
Best regards,
Vincent.