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

NaN error when using explicit solvent. #3

Open
quantaosun opened this issue Oct 22, 2022 · 1 comment
Open

NaN error when using explicit solvent. #3

quantaosun opened this issue Oct 22, 2022 · 1 comment

Comments

@quantaosun
Copy link
Owner

quantaosun commented Oct 22, 2022

This error will not be encountered unless you use explicit-1000_per_interation_doubled_lambda.yml instead of the default implicit-1000_per_interation_doubled_lambda.yml.

This issue is a reminder to myself, and you are welcome to solve this if you have a better position than me.

This issue is doubted to be related to the PBC setting from Amber files used in OpenMM. The way openMM expected PBC and the way Amber defines PBC might conflict. But I must say, sometimes it just works, and sometimes it does not, so the nature of this error is unclear to me.

One thing for sure is once we switch explicit solvent to implicit, this error is gone.

@quantaosun
Copy link
Owner Author

simulation = Simulation(prmtop.topology, system, integrator)
simulation.context.setPositions(inpcrd.positions)

This might be helpful to reset the PBC

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