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 bug in Ewald direct sum energies for smaller unit cells #1040

Merged
merged 10 commits into from
Jul 19, 2023

Conversation

drroe
Copy link
Contributor

@drroe drroe commented Jul 19, 2023

Version 6.20.0.

In previous versions of CPPTRAJ, the direct space term (both regular Ewald and PME) had a bug where some interactions at the edge of the cell were being erroneously discarded for smaller unit cells (6 or fewer grid cells in any axis) as redundant when they were in fact not. This resulted in some interactions (but not all due to some being outside the cutoff) being missed for these cells. The existing tests of small cells did not catch it since the discarded interactions were outside the cutoff (this is why there are no changes to the current saved test output).

This PR fixes the direct space sum for these smaller unit cells.

@drroe drroe added the bugfix label Jul 19, 2023
@drroe drroe self-assigned this Jul 19, 2023
@drroe drroe merged commit e7da225 into Amber-MD:master Jul 19, 2023
11 checks passed
@drroe drroe deleted the debug.pme.energies branch July 19, 2023 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant