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

Conditionally allocate Morrison-Gettelman arrays #291

Merged
merged 2 commits into from
Aug 17, 2019

Conversation

grantfirl
Copy link
Collaborator

Deep convection schemes use the Morrison-Gettelman arrays. Since they are conditionally allocated, make sure that the schemes that use them have assumed-shape dummy arguments.

@grantfirl
Copy link
Collaborator Author

Associated PRs:
FV3 https://github.com/NCAR/FV3/pull/182
gmtb-scm NCAR/ccpp-scm#126

@@ -297,10 +297,16 @@ subroutine m_micro_run( im, ix, lm, flipv, dt_i &
& lwheat_i,swheat_i
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It may not be necessary to use assumed-shape arrays in the MG scheme itself since it presumably won't be called unless imp_physics == imp_physics_mg, but I did this to be consistent across all schemes.

@grantfirl
Copy link
Collaborator Author

Note: MG arrays are also used in m_micro_interstitial.F90, but the arrays inside this scheme were already assumed-shape.

climbfuji added a commit that referenced this pull request Aug 17, 2019
@climbfuji climbfuji merged commit 0256ad4 into NCAR:gmtb/develop Aug 17, 2019
hannahcbarnes pushed a commit to hannahcbarnes/ccpp-physics that referenced this pull request Aug 3, 2022
… UGWP bugfixes, LTP bugfixes, sfcsub update, framework update (NCAR#291)

* ugwpv1_gsldrag bug fixes, and GFS_typdefs updates associated with diag flags for ugwpv1_gsldrag and GFS_DCNV_generic.F90
* Change vertical dimension of arrays atmosphere_heat_diffusivity (aka dkt) and atmosphere_momentum_diffusivity (aka dku), update long names
* Updaate .gitmodules and submodule pointers for ccpp-framework and ccpp-physics for code review and testing
* Update descriptions of dku and dkt in ccpp/driver/GFS_diagnostics.F90 to match what is in the CCPP metadata
* Revert .gitmodules and update submodule pointers for ccpp-framework and ccpp-physics
Co-authored-by: Michael Toy <michael.toy@noaa.gov>
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.

2 participants