-
Notifications
You must be signed in to change notification settings - Fork 37
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
Changed UGWP diagnostic variable declaration intents from 'out' to 'inout' #40
Changed UGWP diagnostic variable declaration intents from 'out' to 'inout' #40
Conversation
@ChunxiZhang-NOAA I forgot to change the "intent" settings for the UGWP diagnostic variables in "drag_suite.meta". I've just changed them from "out" to "inout" to correspond to the changes in "drag_suite.F90". I'm about to push this new commit to my branch. |
@mdtoyNOAA Because those are diagnostic variables, the bug fixes will not change model results, right? |
@ChunxiZhang-NOAA That is correct. |
@mdtoyNOAA Good to know, thanks. |
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.
@mdtoyNOAA Looks good!
… into ufs/dev_drag_suite_intent_mods
ufs-wm test is done: ufs-community/ufs-weather-model#1597. @ChunxiZhang-NOAA can you merge the pr? |
Maybe @grantfirl can merge if @ChunxiZhang-NOAA is not available? |
if @ChunxiZhang-NOAA is not available, @grantfirl can you merge this pr? |
Changed UGWP diagnostic variable declaration intents from 'out' to 'inout'
This pull request fixes Issue #37. The UGWP diagnostic variables (i.e., dusfc_ms, dvsfc_ms, tdaux2d_ms, datauy2d_ms, etc.) are declared with "intent(out)" and initialized in module unified_ugwp.F90, then they are passed to subroutine "drag_suite_run" (in drag_suite.F90). In this subroutine, the UGWP diagnostic variables should have been declared with "intent(inout)" instead of "intent(out)". This PR fixes this.