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

Add dependencies to CCPP metadata #153

Merged
merged 28 commits into from
Sep 2, 2020

Conversation

climbfuji
Copy link
Collaborator

@climbfuji climbfuji commented Aug 4, 2020

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 to GFS_typedefs.F90. On top of this PR, the missing active attribute for phy_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.

…or testing the metadata-dependency implementation, fix an error for RRTMGP files
@climbfuji climbfuji marked this pull request as ready for review August 12, 2020 20:38
@@ -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)
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

@DusanJovic-NOAA DusanJovic-NOAA merged commit 223f092 into NOAA-EMC:develop Sep 2, 2020
LarissaReames-NOAA pushed a commit to LarissaReames-NOAA/fv3atm that referenced this pull request Nov 17, 2023
* update in fv_nudge to fix 666 label logic
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.

4 participants