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

GOMC should detect Forcefield files with duplicate dihedral definitions with the same periodicity #529

Open
LSchwiebert opened this issue Aug 5, 2024 · 1 comment · Fixed by #530
Assignees

Comments

@LSchwiebert
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

GOMC produces incorrect intrabond energies if the forcefield file includes duplicate dihedral entries (the same atoms) with the same periodicity (value of n). Since all of these entries are used in the energy calculation, duplicate energy changes are made, so the energy calculation is incorrect.

Describe the solution you'd like

GOMC should generate an informative error message and terminate.

Describe alternatives you've considered

N/A. The result is incorrect, but that may not be obvious, so better to terminate with an error so the force field file can be corrected.

Additional context

None.

@LSchwiebert LSchwiebert self-assigned this Aug 5, 2024
@LSchwiebert
Copy link
Collaborator Author

Instead of terminating with an error, the patch will remove the duplicates and generate a warning. This way, the user knows that a modification has been made to do something other than what the forcefield input file requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant