Skip to content

Commit

Permalink
Cleanup work: CCPP metadata units and more (NOAA-EMC#140)
Browse files Browse the repository at this point in the history
This PR contains cleanup work to address wrong units and some issues raised in recently merged PRs:
- correct units for latitude, longitude, and pi
- correct standard name air_temperature_save_from_cumulus_paramterization to air_temperature_save_from_convective_parameterization
- remove unused variables in two routines in `GFS_typedefs.F90`
- remove recently introduced variable `cycling` (part of GFS_control DDT), now a local variable in `physics/module_MYNNPBL_wrapper.F90`
- change order of interstitial schemes in `ccpp/suites/suite_FV3_GFS_2017_fv3wam.xml` to match other SDFs

Fixes NOAA-EMC#138 and parts of NOAA-EMC#137.
  • Loading branch information
climbfuji committed Jul 15, 2020
1 parent da1230d commit f053db2
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 26 deletions.
2 changes: 1 addition & 1 deletion ccpp/framework
2 changes: 1 addition & 1 deletion ccpp/physics
Submodule physics updated 46 files
+1 −0 physics/GFS_DCNV_generic.meta
+17 −10 physics/GFS_GWD_generic.meta
+2 −2 physics/GFS_MP_generic.meta
+32 −0 physics/GFS_PBL_generic.meta
+12 −4 physics/GFS_SCNV_generic.meta
+1 −1 physics/GFS_rrtmg_setup.meta
+1 −1 physics/GFS_rrtmgp_setup.meta
+1 −1 physics/GFS_rrtmgp_sw_pre.meta
+22 −22 physics/GFS_stochastics.meta
+5 −5 physics/GFS_suite_interstitial.meta
+9 −9 physics/GFS_surface_composites.meta
+1 −1 physics/GFS_surface_generic.meta
+35 −25 physics/cires_ugwp.meta
+1 −1 physics/cs_conv_aw_adj.meta
+12 −0 physics/cu_gf_driver.meta
+2 −2 physics/dcyc2.meta
+2 −2 physics/drag_suite.meta
+1 −1 physics/gcm_shoc.meta
+0 −10 physics/gscond.meta
+1 −1 physics/gwdc.meta
+1 −1 physics/gwdps.meta
+34 −34 physics/lsm_ruc_sfc_sice_interstitial.meta
+2 −2 physics/m_micro.meta
+1 −1 physics/m_micro_interstitial.meta
+1 −1 physics/module_MYJPBL_wrapper.meta
+3 −3 physics/module_MYJSFC_wrapper.meta
+4 −2 physics/module_MYNNPBL_wrapper.F90
+6 −8 physics/module_MYNNPBL_wrapper.meta
+3 −3 physics/module_MYNNSFC_wrapper.meta
+2 −2 physics/module_SGSCloud_RadPre.meta
+10 −0 physics/moninedmf.meta
+1 −1 physics/rascnv.meta
+3 −3 physics/rrtmgp_lw_aerosol_optics.meta
+2 −2 physics/rrtmgp_lw_cloud_optics.meta
+2 −2 physics/rrtmgp_lw_pre.meta
+2 −2 physics/rrtmgp_sw_aerosol_optics.meta
+60 −58 physics/samfdeepcnv.meta
+1 −1 physics/samfshalcnv.meta
+1 −1 physics/sascnvn.meta
+14 −0 physics/satmedmfvdif.meta
+0 −1 physics/sfc_drv_ruc.F90
+475 −472 physics/sfc_drv_ruc.meta
+1 −1 physics/sfc_noahmp_drv.meta
+3 −3 physics/sfc_nst.meta
+1 −1 physics/sfc_sice.meta
+1 −1 physics/shalcnv.meta
2 changes: 1 addition & 1 deletion ccpp/suites/suite_FV3_GFS_2017_fv3wam.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
<scheme>rayleigh_damp</scheme>
<scheme>GFS_suite_stateout_update</scheme>
<scheme>ozphys</scheme>
<scheme>GFS_DCNV_generic_pre</scheme>
<scheme>get_phi_fv3</scheme>
<scheme>GFS_suite_interstitial_3</scheme>
<scheme>GFS_DCNV_generic_pre</scheme>
<scheme>samfdeepcnv</scheme>
<scheme>GFS_DCNV_generic_post</scheme>
<scheme>GFS_SCNV_generic_pre</scheme>
Expand Down
7 changes: 0 additions & 7 deletions gfsphysics/GFS_layer/GFS_typedefs.F90
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ module GFS_typedefs
#ifdef CCPP
!--- restart information
logical :: restart !< flag whether this is a coldstart (.false.) or a warmstart/restart (.true.)
logical :: cycling !< flag whether this is a coldstart (.false.) or a cycled run (.true.)
!--- hydrostatic/non-hydrostatic flag
logical :: hydrostatic !< flag whether this is a hydrostatic or non-hydrostatic run
#endif
Expand Down Expand Up @@ -1125,7 +1124,6 @@ module GFS_typedefs
#ifdef CCPP
logical :: first_time_step !< flag signaling first time step for time integration routine
logical :: restart !< flag whether this is a coldstart (.false.) or a warmstart/restart (.true.)
logical :: cycling !< flag whether this is a coldstart (.false.) or a cycled run (.true.)
logical :: hydrostatic !< flag whether this is a hydrostatic or non-hydrostatic run
#endif
integer :: jdat(1:8) !< current forecast date and time
Expand Down Expand Up @@ -2890,7 +2888,6 @@ subroutine control_initialize (Model, nlunit, fn_nml, me, master, &
logical :: aux2d_time_avg(1:naux2dmax) = .false. !< flags for time averaging of auxiliary 2d arrays
logical :: aux3d_time_avg(1:naux3dmax) = .false. !< flags for time averaging of auxiliary 3d arrays

logical :: cycling = .false. !< flag to activate extra cycling procedures
real(kind=kind_phys) :: fhcyc = 0. !< frequency for surface data cycling (hours)
integer :: thermodyn_id = 1 !< valid for GFS only for get_prs/phi
integer :: sfcpress_id = 1 !< valid for GFS only for get_prs/phi
Expand Down Expand Up @@ -4164,7 +4161,6 @@ subroutine control_initialize (Model, nlunit, fn_nml, me, master, &
#ifdef CCPP
Model%first_time_step = .true.
Model%restart = restart
Model%cycling = cycling
Model%hydrostatic = hydrostatic
#endif
Model%jdat(1:8) = jdat(1:8)
Expand Down Expand Up @@ -5128,7 +5124,6 @@ subroutine control_print(Model)
print *, ' sec : ', Model%sec
print *, ' first_time_step : ', Model%first_time_step
print *, ' restart : ', Model%restart
print *, ' cycling : ', Model%cycling
print *, ' hydrostatic : ', Model%hydrostatic
#endif
endif
Expand Down Expand Up @@ -5783,7 +5778,6 @@ end subroutine diag_create
subroutine diag_rad_zero(Diag, Model)
class(GFS_diag_type) :: Diag
type(GFS_control_type), intent(in) :: Model
integer :: i

Diag%fluxr = zero
Diag%topfsw%upfxc = zero
Expand All @@ -5806,7 +5800,6 @@ subroutine diag_phys_zero (Diag, Model, linit, iauwindow_center)
logical,optional, intent(in) :: linit, iauwindow_center

logical set_totprcp
integer :: i

!--- In/Out
Diag%srunoff = zero
Expand Down
26 changes: 10 additions & 16 deletions gfsphysics/GFS_layer/GFS_typedefs.meta
Original file line number Diff line number Diff line change
Expand Up @@ -4010,7 +4010,7 @@
[slag]
standard_name = equation_of_time
long_name = equation of time (radian)
units = radians
units = radian
dimensions = ()
type = real
kind = kind_phys
Expand Down Expand Up @@ -4074,12 +4074,6 @@
units = flag
dimensions = ()
type = logical
[cycling]
standard_name = flag_for_cycling
long_name = flag for cycling or coldstart
units = flag
dimensions = ()
type = logical
[hydrostatic]
standard_name = flag_for_hydrostatic_solver
long_name = flag for hydrostatic solver from dynamics
Expand Down Expand Up @@ -4319,14 +4313,14 @@
[xlat]
standard_name = latitude
long_name = latitude
units = radians
units = radian
dimensions = (horizontal_dimension)
type = real
kind = kind_phys
[xlon]
standard_name = longitude
long_name = longitude
units = radians
units = radian
dimensions = (horizontal_dimension)
type = real
kind = kind_phys
Expand All @@ -4345,9 +4339,9 @@
type = real
kind = kind_phys
[xlat_d]
standard_name = latitude_degree
long_name = latitude in degrees
units = degree
standard_name = latitude_in_degree
long_name = latitude in degree north
units = degree_north
dimensions = (horizontal_dimension)
type = real
kind = kind_phys
Expand Down Expand Up @@ -8150,7 +8144,7 @@
type = real
kind = kind_phys
[save_tcp]
standard_name = air_temperature_save_from_cumulus_paramterization
standard_name = air_temperature_save_from_convective_parameterization
long_name = air temperature after cumulus parameterization
units = K
dimensions = (horizontal_dimension,vertical_dimension)
Expand Down Expand Up @@ -8344,7 +8338,7 @@
[theta]
standard_name = angle_from_east_of_maximum_subgrid_orographic_variations
long_name = angle with_respect to east of maximum subgrid orographic variations
units = degrees
units = degree
dimensions = (horizontal_dimension)
type = real
kind = kind_phys
Expand Down Expand Up @@ -9482,7 +9476,7 @@
[con_pi]
standard_name = pi
long_name = ratio of a circle's circumference to its diameter
units = radians
units = none
dimensions = ()
type = real
kind = kind_phys
Expand All @@ -9502,7 +9496,7 @@
kind = kind_phys
[con_t0c]
standard_name = temperature_at_zero_celsius
long_name = temperature at 0 degrees Celsius
long_name = temperature at 0 degree Celsius
units = K
dimensions = ()
type = real
Expand Down

0 comments on commit f053db2

Please sign in to comment.