Skip to content

Changed UGWP diagnostic variable declaration intents from 'out' to 'inout'#40

Merged
grantfirl merged 3 commits into
ufs-community:ufs/devfrom
mdtoyNOAA:ufs/dev_drag_suite_intent_mods
Feb 22, 2023
Merged

Changed UGWP diagnostic variable declaration intents from 'out' to 'inout'#40
grantfirl merged 3 commits into
ufs-community:ufs/devfrom
mdtoyNOAA:ufs/dev_drag_suite_intent_mods

Conversation

@mdtoyNOAA
Copy link
Copy Markdown
Collaborator

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.

@mdtoyNOAA
Copy link
Copy Markdown
Collaborator Author

@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.

@ChunxiZhang-NOAA
Copy link
Copy Markdown

@mdtoyNOAA Because those are diagnostic variables, the bug fixes will not change model results, right?

@mdtoyNOAA
Copy link
Copy Markdown
Collaborator Author

@ChunxiZhang-NOAA That is correct.

@ChunxiZhang-NOAA
Copy link
Copy Markdown

@mdtoyNOAA Good to know, thanks.

Copy link
Copy Markdown
Collaborator

@dustinswales dustinswales left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mdtoyNOAA Looks good!

@jkbk2004
Copy link
Copy Markdown

ufs-wm test is done: ufs-community/ufs-weather-model#1597. @ChunxiZhang-NOAA can you merge the pr?

@BrianCurtis-NOAA
Copy link
Copy Markdown

Maybe @grantfirl can merge if @ChunxiZhang-NOAA is not available?

@jkbk2004
Copy link
Copy Markdown

if @ChunxiZhang-NOAA is not available, @grantfirl can you merge this pr?

@grantfirl grantfirl merged commit 235ef96 into ufs-community:ufs/dev Feb 22, 2023
dustinswales pushed a commit that referenced this pull request Nov 2, 2023
Changed UGWP diagnostic variable declaration intents from 'out' to 'inout'
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.

Possible correction to declaration intent for diagnostic variables in drag_suite.F90

6 participants