def/ufs: Bug fix to avoid accessing uninitialized date #1112
Merged
MatthewMasarik-NOAA merged 3 commits intoOct 26, 2023
Merged
Conversation
Merged
43 tasks
Contributor
|
Thanks, @JessicaMeixner-NOAA! I'll start the tests now. |
Contributor
|
Woops, just a clarification: this is going into dev/ufs-weather-model, so no tests to run for this branch. Reviewing now. |
MatthewMasarik-NOAA
approved these changes
Oct 26, 2023
Contributor
MatthewMasarik-NOAA
left a comment
There was a problem hiding this comment.
Code review
Pass
Testing
Pass
- branch:
dev/ufs-weather-model- UFS RT - Author has confirmed RTs created/matched a baseline.
- WW3 regtests - N/A (matrix regtests are only run for
develop).
Approved.
Contributor
|
@JessicaMeixner-NOAA thank you for the very quick detective work and fix submission! It is great to have addressed a longstanding, hidden bug in WW3! |
Collaborator
Author
|
@MatthewMasarik-NOAA it's not time ot merge this in this branch. we do not merge until it's turn in the ufs-weathe-rmodel queue Can we unmerge this? |
JessicaMeixner-NOAA
added a commit
that referenced
this pull request
Oct 26, 2023
This reverts commit 02693d8.
Contributor
Right. My mistake. Yes, I'll work on it now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Summary
This PR addresses a bug that was discovered on hercules with gnu debug compilers, where an uninitialized date was being used.
Description
This changes logic in w3wave to avoid calling a function with an uninitialized date. This bug has existed for quite a while but only was exposed on a particular platform with debug in gnu which gave a small-ish random value. Intel tends to initialize to 0 and extremely large random numbers did not cause issues because flout(7) was also false and we didn't seem to try to access a variable with month 52 that way.
Please also include the following information:
Issue(s) addressed
This partially address issues #1109 (also needs PR to develop to be closed) and partially addresses ufs-community/ufs-weather-model#1963
Commit Message
def/ufs: Bug fix to avoid accessing uninitialized date
Check list
Testing