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

Terminate GOMC (with an error message) if the initial configuration has infinite energy #536

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

LSchwiebert
Copy link
Collaborator

If the initial configuration is physically impossible, such as having two atoms in the same initial position, then GOMC will produce an initial energy that is infinite or NaN. For this case, the simulation won't self-correct to a feasible system. So, we should terminate with an error message so that the user can fix the initial configuration.

This patch introduces code to handle this situation.

…as infinite energy, such as two atoms with identical coordinates
@HamiedAsadi
Copy link
Collaborator

Well done, Approved.

Copy link
Collaborator

@jpotoff jpotoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jpotoff jpotoff merged commit c7a79c5 into development Jan 27, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants