Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fixing infinite loop issue in reionization code #17

Merged
merged 2 commits into from
Feb 7, 2018
Merged

Conversation

coleb
Copy link

@coleb coleb commented Feb 6, 2018

This fixes the issue of the reionization code entering an infinite loop as first reported here:
#14

The fix prevents a proton from migrating between the same two atoms twice. If such a case is detected it assumes an infinite loop will be encountered and terminates the loop with a warning.

Brian Cole added 2 commits February 6, 2018 13:36
proton back and forth from the same two locations.

This fixes this bug by keeping track on hydrogen moves already
performed and disallowing hydrogen moves between the same two atoms to
occur again. If that is detected the loop is terminated.
@mcs07 mcs07 merged commit e66b4cc into mcs07:master Feb 7, 2018
@mcs07
Copy link
Owner

mcs07 commented Feb 7, 2018

Thanks Brian

@mcs07 mcs07 added the bug label Feb 7, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants