Skip to content

Commit

Permalink
Cleanup grandfathered-in constants in CCPP - round 1 (NOAA-EMC#360)
Browse files Browse the repository at this point in the history
Add metadata for three constants that are required for the changes in PR NCAR/ccpp-physics#525.
The motivation behind these changes is that physical parameterizations should receive constants (e.g. gravitational acceleration) from the host model via the argument list instead of importing them from some Fortran module or defining them locally. This ensures consistency and enhances interoperability.
  • Loading branch information
climbfuji authored Aug 12, 2021
1 parent 29787d5 commit 949656b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ccpp/data/GFS_typedefs.F90
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module GFS_typedefs
con_epsm1, con_ttp, rlapse, con_jcal, con_rhw0, &
con_sbc, con_tice, cimin, con_p0, rhowater, &
con_csol, con_epsqs, con_rocp, con_rog, &
con_omega, con_rerth
con_omega, con_rerth, con_psat, karman, rainmin

use module_radsw_parameters, only: topfsw_type, sfcfsw_type, profsw_type, cmpfsw_type, NBDSW
use module_radlw_parameters, only: topflw_type, sfcflw_type, proflw_type, NBDLW
Expand Down
21 changes: 21 additions & 0 deletions ccpp/data/GFS_typedefs.meta
Original file line number Diff line number Diff line change
Expand Up @@ -10928,3 +10928,24 @@
dimensions = ()
type = real
kind = kind_phys
[con_psat]
standard_name = saturation_pressure_at_triple_point_of_water
long_name = saturation pressure at triple point of water
units = Pa
dimensions = ()
type = real
kind = kind_phys
[karman]
standard_name = von_karman_constant
long_name = Von Karman constant
units = none
dimensions = ()
type = real
kind = kind_phys
[rainmin]
standard_name = lwe_thickness_of_minimum_rain_amount
long_name = liquid water equivalent thickness of minimum rain amount
units = m
dimensions = ()
type = real
kind = kind_phys

0 comments on commit 949656b

Please sign in to comment.