Skip to content
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

How to handle multiple cutoffs in a mixed potential #37

Open
jrdegreeff opened this issue Apr 18, 2022 · 0 comments
Open

How to handle multiple cutoffs in a mixed potential #37

jrdegreeff opened this issue Apr 18, 2022 · 0 comments

Comments

@jrdegreeff
Copy link
Member

Our current implementation selects the maximum of all the component potential cutoffs (and then would use that for all components once we transistion to the new neighbor list interface). This seems to be a decent decision for combinations of similar potentials, but we might need to rethink this if we implement distance-based-switching mixed potentials in the future (as was suggested in #14).

get_rcutoff(mp::LinearCombinationPotential) = maximum(get_rcutoff, mp.potentials)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant