Skip to content

Fix issue #540 - #541

Merged
lohedges merged 1 commit into
develfrom
fix_540
Nov 19, 2026
Merged

lohedges merged 1 commit into
develfrom
fix_540

Conversation

@lohedges

Copy link
Copy Markdown
Contributor

Exceptions between to and from ghost atoms, e.g. 1-4 pairs through a shared anchor, kept their hard Coulomb charge product in the NonbondedForce at intermediate lambda. These pairs are skipped by the ghost-14 force, so nothing softened or cancelled the interaction. When the vanishing and appearing groups overlap, as for partially mapped rings, opposite charges a few hundredths of an Å apart collapsed onto each other and the simulation crashed.

The charge product of these exceptions is now zero, both when the system is created and when lambda is set, matching the other to/from ghost pairs. The interaction vanishes at both end states, so results that didn't crash are unaffected. A test checks that to/from ghost exceptions have no charge at lambda 0, 0.5 and 1 for two merged molecules.

Closes #540

  • 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 test for any new functionality in this pull request: [y]
  • I confirm that I have added documentation (e.g. a new tutorial page or detailed guide) for any new functionality in this pull request: [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 MIT license (the Python API) or the LGPLv3+ license (everything else), as described in the LICENSE file: [y]

@lohedges lohedges added the bug Something isn't working label Nov 19, 2026
@lohedges
lohedges merged commit e911713 into devel Nov 19, 2026
5 checks passed
@lohedges
lohedges deleted the fix_540 branch November 19, 2026 13:56

This branch was previously deployed

1 inactive deployment
sire-build — b971e781 Deployed Nov 19, 2026 by lohedges via build (3.14, linux) #476
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Coulomb 1-4 exceptions are kept between vanishing and appearing ghost atoms

1 participant