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

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

Merged

Conversation

mdtoyNOAA
Copy link
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
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

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

@mdtoyNOAA
Copy link
Collaborator Author

@ChunxiZhang-NOAA That is correct.

@ChunxiZhang-NOAA
Copy link

@mdtoyNOAA Good to know, thanks.

Copy link
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

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

@BrianCurtis-NOAA
Copy link

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

@jkbk2004
Copy link

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