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

Dummy-allocate inactive local variables #536

Merged

Conversation

grantfirl
Copy link
Collaborator

@grantfirl grantfirl commented Feb 27, 2024

Allocate dummy inactive local variables to size 0.

This is a temporary fix for the RRFS branch that is needed to compile with -check all. Using this flag,
even if variables are not used within a scheme, they are checked for their allocation status, and
unallocated variables lead to a runtime error. This fix goes with the other temporary fixes in
ccpp-physics, fv3atm, etc. for the RRFS branch only. This issue is address more completely via
#529, and will be pulled into main when ready.

User interface changes?: No

Fixes: temporarily addresses ufs-community/ufs-weather-model#2023

Testing:
test removed:
unit tests:
system tests: See ufs-community/ufs-weather-model#2158 for testing results.
manual testing:

Copy link
Collaborator

@climbfuji climbfuji left a comment

Choose a reason for hiding this comment

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

I shouldn't be approving my own changes, but let me just note that I am ok to use this for the RRFS branch. Thanks for creating the PR.

Copy link
Collaborator

@gold2718 gold2718 left a comment

Choose a reason for hiding this comment

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

Gets the job done, I don't see anything troublesome.

@jkbk2004
Copy link

jkbk2004 commented Mar 5, 2024

@dustinswales @grantfirl tests are done at ufs-community/ufs-weather-model#2158. Can you merge this pr?

@grantfirl grantfirl merged commit b945b07 into NCAR:production/RRFS.v1 Mar 5, 2024
@grantfirl grantfirl deleted the feature/dummy_allocate_inactive branch March 5, 2024 14:41
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.

None yet

5 participants