Skip to content

Conversation

@peastman
Copy link
Contributor

@peastman peastman commented Jul 2, 2021

When I implemented unscaled 1-4 interactions in #1149, I based it on the assumption that pairs could be classified based just on the types of the two interacting atoms, ignoring the two other atoms that connect them. This turns out to be wrong. For example, O-C-CX-H1 is an ordinary backbone torsion that uses standard scaling factors. By O-C-Cg-H1 is a GLYCAM torsion that should be unscaled. You need to consider all four atoms to tell the difference. This changes it to do that.

@peastman
Copy link
Contributor Author

peastman commented Jul 5, 2021

Test results are in openmm/openmmforcefields#156 (comment). With this change, we get excellent agreement on energies.

@swails swails merged commit 8ac72ce into ParmEd:master Jul 8, 2021
@swails
Copy link
Contributor

swails commented Jul 8, 2021

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants