-
Notifications
You must be signed in to change notification settings - Fork 553
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
def/ufs: Bug fix to avoid accessing uninitialized date #1112
def/ufs: Bug fix to avoid accessing uninitialized date #1112
Conversation
Thanks, @JessicaMeixner-NOAA! I'll start the tests now. |
Woops, just a clarification: this is going into dev/ufs-weather-model, so no tests to run for this branch. Reviewing now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
02693d8
into
NOAA-EMC:dev/ufs-weather-model
@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! |
@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? |
This reverts commit 02693d8.
Right. My mistake. Yes, I'll work on it now. |
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