-
Notifications
You must be signed in to change notification settings - Fork 50
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
E openmm.OpenMMException: NonbondedForce: The cutoff distance cannot be greater than half the periodic box size. #949
Comments
It's almost certainly due to this change, and the new box sizes we are creating are stochastically shrinking to smaller than twice the cutoff under the action of I don't quite understand how this change would cause such a significant difference in box sizes, however. |
@peastman: Am I understanding these lines correctly, such that if we had a dense sphere of radius Do we want to preserve the old behavior in this case? Or do we want to try to force people to update how they use |
That's correct. The new method can produce a box that's either larger or smaller than the previous method. For a dense sphere it's now smaller. But for a dense cube of size Previously |
What if we also revise the box size error to give useful hints that you
should increase your box size or padding, and that the definition recently
changed?
|
* fixes a few tests by increasing the padding * bump padding, but realy slows down tests * fix protein_counterion_topology tests * bump padding a bit in test 'fixture' * see if 11 A works here * needed a bit more padding * test_generate_endpoint_thermodynamic_states needs 16 A padding
Two days ago we started getting this error on nightly
https://github.com/choderalab/perses/runs/5367830989?check_suite_focus=true#step:9:293
openmm.OpenMMException: NonbondedForce: The cutoff distance cannot be greater than half the periodic box size
Which is causing these tests to fail:
Which is a bit confusing since that line of code has been in openmm for 12 years:
https://github.com/openmm/openmm/blame/fd1cfdd60ccc883d4b811da96b823cb403182635/openmmapi/src/NonbondedForceImpl.cpp#L130
But looking at merged PRs and the dates, this may be the culprit:
openmm/openmm#3480
Any ideas @jchodera
It looks like this is enough to trigger the error:
topology_proposal, old_positions, new_positions = utils.generate_solvated_hybrid_test_topology()
The text was updated successfully, but these errors were encountered: