Skip to content

Conditionally allocate Morrison-Gettelman arrays#291

Merged
climbfuji merged 2 commits into
NCAR:gmtb/developfrom
grantfirl:MG_array_allocation
Aug 17, 2019
Merged

Conditionally allocate Morrison-Gettelman arrays#291
climbfuji merged 2 commits into
NCAR:gmtb/developfrom
grantfirl:MG_array_allocation

Conversation

@grantfirl
Copy link
Copy Markdown
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
Copy Markdown
Collaborator Author

Comment thread physics/m_micro.F90
@@ -297,10 +297,16 @@ subroutine m_micro_run( im, ix, lm, flipv, dt_i &
& lwheat_i,swheat_i
Copy link
Copy Markdown
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
Copy Markdown
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