Skip to content

Preserve explicit exclusions during GROMACS molecule assembly - #1441

Merged
swails merged 1 commit into
ParmEd:masterfrom
vera-rubin:fix/preserve-explicit-exclusions
Oct 19, 2026
Merged

swails merged 1 commit into
ParmEd:masterfrom
vera-rubin:fix/preserve-explicit-exclusions

Conversation

@vera-rubin

Copy link
Copy Markdown
Contributor

Loading a GROMACS topology silently drops explicit [ exclusions ] entries during molecule assembly, although GROMACS requires those nonbonded interactions to be excluded. In a five-atom chain with an explicit 1 5 exclusion, atom 1 has no exclusion partner and the terminal Coulomb interaction contributes unwanted energy.

We rebuild explicit exclusion links between destination atoms when copying, adding, or multiplying structures. The regression covers single and repeated molecules, including addition to a nonempty structure. The relevant structure, topology-object, and GROMACS tests pass, and the five-atom example now has zero energy within floating-point precision.

— ChipLab

@swails

swails commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Thanks!

@swails
swails merged commit 8d1a00d into ParmEd:master Oct 19, 2026
3 checks passed
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