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

Fix #228 #229

Merged
merged 12 commits into from
Sep 6, 2024
Merged

Fix #228 #229

merged 12 commits into from
Sep 6, 2024

Conversation

lohedges
Copy link
Contributor

@lohedges lohedges commented Aug 19, 2024

This PR closes #228 by correcting the logic to set GROMACS atom types for dummy atoms. In certain cases an additional _du suffix was applied to dummies when writing to the [ atoms ] section, meaning that no match was found in the [ atomtypes ] section. In addition, atom type deduplication wasn't always working correctly meaning that there were (sometimes) unused atom types in the [ atomtypes ] section, i.e. they never appeared in [ atoms ]. This meant that an atom in [ atoms ] may have been paired with the wrong type from [ atomtypes ]. (This doesn't matter for all terms, since those in [ atoms ] take precedence.)

I'm still not sure how this issue hasn't occurred before. It's not clear whether this was new input for Exscientia, or whether an existing test triggered the problem following the LJ sigma update. (Although I can't see how.)

I've added a unit test to validate the two sets of records for the problem system and have also checked that all of the BioSimSpace unit tests still pass.

Note that I'd probably like to go back and simplify the logic here at some point. This is a quick fix to get things working before I go on holiday.

  • I confirm that I have merged the latest version of devel into this branch before issuing this pull request (e.g. by running git pull origin devel): [y]
  • I confirm that I have added a changelog entry to the changelog (we will add a link to this PR as part of the review): [y]
  • I confirm that I have permission to release this code under the GPL3 license: [y]

Suggested reviewers:

@chryswoods

@lohedges lohedges added bug Something isn't working exscientia Related to work with Exscientia labels Aug 19, 2024
@lohedges lohedges requested a review from chryswoods August 19, 2024 19:43
@xiki-tempula
Copy link

Do you mind make a branch targeting main so I could have a test? Thanks.

lohedges added a commit that referenced this pull request Aug 20, 2024
lohedges added a commit that referenced this pull request Aug 20, 2024
@lohedges
Copy link
Contributor Author

Here we go.

Updated to match the equation in openmmfrenergyst.cpp. This is due to
a minor issue with the older version where the potential is not harmonic
with equilibrium position dl.
@lohedges
Copy link
Contributor Author

lohedges commented Sep 2, 2024

@xiki-tempula: Did you get a chance to test this? If all is okay, then I'll merge into devel this week and backport.

@xiki-tempula
Copy link

Yes. It works very well.

@lohedges
Copy link
Contributor Author

lohedges commented Sep 2, 2024

Perfect. Thanks for confirming.

@lohedges
Copy link
Contributor Author

lohedges commented Sep 2, 2024

This now contains the additional fixes from #225 and #226.

@lohedges lohedges merged commit 25989b7 into devel Sep 6, 2024
@lohedges lohedges deleted the fix_228 branch September 6, 2024 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working exscientia Related to work with Exscientia
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Issues with dummy atomtypes in perturbable GROMACS topologies
3 participants