-
Notifications
You must be signed in to change notification settings - Fork 164
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
Add dependencies to CCPP metadata #153
Add dependencies to CCPP metadata #153
Conversation
…-physics for code review and testing
…or testing the metadata-dependency implementation, fix an error for RRTMGP files
….py, remove legacy options that are no longer needed
…adata_dependencies
… from ccpp/config/ccpp_prebuild_config.py
…adata_dependencies
…adata_dependencies
…adata_dependencies
…rgument-mismatch for gfortran-10 compatibility
…amework and ccpp-physics
@@ -680,6 +690,7 @@ | |||
dimensions = (horizontal_dimension) | |||
type = real | |||
kind = kind_phys | |||
active = (flag_for_mass_flux_deep_convection_scheme == flag_for_gf_deep_convection_scheme) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am curious how the active is used? Will the variable be allocated if active is false or this attribute will only be used by the ccpp/framework?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The attribute is currently only used by the ccpp-framework to perform or skip certain operations in the auto-generated caps. In the future, data entirely internal to physics (i.e. everything in the GFS_interstitital DDT) will be allocated automatically by the ccpp-framework, and then active
can be used to skip certain allocations.
But for the original/other GFS DDTs in GFS_typedefs.F90
, it will only be used in the auto-generated caps. That's why the Fortran allocation logic in GFS_typedefs.F90
needs to be consistent with the active
attribute in GFS_typedefs.meta
for those data.
* update in fv_nudge to fix 666 label logic
This PR removes dependency information from the CCPP prebuild config. See NCAR/ccpp-framework#308 and NCAR/ccpp-framework#317 for details on the motivation for this change and the actual implementation. It also removes some legacy code used by the dynamic CCPP build in the past.
This PR also contains the changes in #156, i.e. the completion of adding the
active
attribute toGFS_typedefs.F90
. On top of this PR, the missingactive
attribute forphy_fctd
is added.Additionally, gfortran-10 compiler flags are added to CCPP's
CMakeLists.txt
.Associated PRs:
earth-system-radiation/rte-rrtmgp#85
NCAR/ccpp-framework#317
NCAR/ccpp-physics#483
#153
ufs-community/ufs-weather-model#180
See ufs-community/ufs-weather-model#180 for regression testing.