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 infinite loop in dp_pgrb subroutine #46

Merged
merged 1 commit into from
Feb 28, 2022

Conversation

sgdecker
Copy link
Collaborator

When the grid is nearly identical, raising the qdif value to
increasing powers of 2 overflows before the do-loop can be
terminate. This PR fixes #45 by using TINY() to prevent the overflow.

When the grid is nearly identical, raising the qdif value to
increasing powers of 2 overflows before the do-loop can be
terminate. This PR fixes Unidata#45 by using TINY() to prevent the overflow.
@akrherz
Copy link
Collaborator

akrherz commented Feb 28, 2022

@sgdecker I have rebased this to get CI's opinion. Are you still happy with this change?

@sgdecker
Copy link
Collaborator Author

Yes, I think it is still good.

@akrherz akrherz merged commit 56c6068 into Unidata:main Feb 28, 2022
@akrherz akrherz added this to the 7.14.0.1 milestone Mar 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Infinite loop in DP_PGRB
2 participants