Skip to content

Commit

Permalink
Add optional attribute to meta files
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinswales committed Mar 22, 2024
1 parent 457d2ca commit 37475d2
Show file tree
Hide file tree
Showing 15 changed files with 45 additions and 5 deletions.
1 change: 1 addition & 0 deletions physics/GWD/cires_ugwp.meta
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,7 @@
type = real
kind = kind_phys
intent = inout
optional = True
[dtidx]
standard_name = cumulative_change_of_state_variables_outer_index
long_name = index of state-variable and process in last dimension of diagnostic tendencies array AKA cumulative_change_index
Expand Down
1 change: 1 addition & 0 deletions physics/GWD/gwdc_post.meta
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
type = real
kind = kind_phys
intent = inout
optional = True
[dtidx]
standard_name = cumulative_change_of_state_variables_outer_index
long_name = index of state-variable and process in last dimension of diagnostic tendencies array AKA cumulative_change_index
Expand Down
1 change: 1 addition & 0 deletions physics/GWD/rayleigh_damp.meta
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@
type = real
kind = kind_phys
intent = inout
optional = True
[dtidx]
standard_name = cumulative_change_of_state_variables_outer_index
long_name = index of state-variable and process in last dimension of diagnostic tendencies array AKA cumulative_change_index
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@
type = real
kind = kind_phys
intent = inout
optional = True
[dtidx]
standard_name = cumulative_change_of_state_variables_outer_index
long_name = index of state-variable and process in last dimension of diagnostic tendencies array AKA cumulative_change_index
Expand Down
10 changes: 5 additions & 5 deletions physics/Interstitials/UFS_SCM_NEPTUNE/GFS_physics_post.F90
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ subroutine GFS_physics_post_run(nCol, nLev, ntoz, ntracp100, nprocess, nprocess_
is_photochem ! Flags for photochemistry processes to sum

! Inputs (optional)
real(kind=kind_phys), intent(in), dimension(:,:), pointer, optional :: &
real(kind=kind_phys), intent(in), dimension(:,:), optional :: &
do3_dt_prd, & ! Physics tendency: production and loss effect
do3_dt_ozmx, & ! Physics tendency: ozone mixing ratio effect
do3_dt_temp, & ! Physics tendency: temperature effect
Expand Down Expand Up @@ -78,22 +78,22 @@ subroutine GFS_physics_post_run(nCol, nLev, ntoz, ntracp100, nprocess, nprocess_
!
! #######################################################################################
idtend = dtidx(100+ntoz,ip_prod_loss)
if (idtend >= 1 .and. associated(do3_dt_prd)) then
if (idtend >= 1 .and. present(do3_dt_prd)) then
dtend(:,:,idtend) = dtend(:,:,idtend) + do3_dt_prd
endif
!
idtend = dtidx(100+ntoz,ip_ozmix)
if (idtend >= 1 .and. associated(do3_dt_ozmx)) then
if (idtend >= 1 .and. present(do3_dt_ozmx)) then
dtend(:,:,idtend) = dtend(:,:,idtend) + do3_dt_ozmx
endif
!
idtend = dtidx(100+ntoz,ip_temp)
if (idtend >= 1 .and. associated(do3_dt_temp)) then
if (idtend >= 1 .and. present(do3_dt_temp)) then
dtend(:,:,idtend) = dtend(:,:,idtend) + do3_dt_temp
endif
!
idtend = dtidx(100+ntoz,ip_overhead_ozone)
if (idtend >= 1 .and. associated(do3_dt_ohoz)) then
if (idtend >= 1 .and. present(do3_dt_ohoz)) then
dtend(:,:,idtend) = dtend(:,:,idtend) + do3_dt_ohoz
endif

Expand Down
4 changes: 4 additions & 0 deletions physics/Interstitials/UFS_SCM_NEPTUNE/GFS_physics_post.meta
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
type = real
kind = kind_phys
intent = in
optional = True
[do3_dt_ozmx]
standard_name = ozone_tendency_due_to_ozone_mixing_ratio
long_name = ozone tendency due to ozone mixing ratio
Expand All @@ -136,6 +137,7 @@
type = real
kind = kind_phys
intent = in
optional = True
[do3_dt_temp]
standard_name = ozone_tendency_due_to_temperature
long_name = ozone tendency due to temperature
Expand All @@ -144,6 +146,7 @@
type = real
kind = kind_phys
intent = in
optional = True
[do3_dt_ohoz]
standard_name = ozone_tendency_due_to_overhead_ozone_column
long_name = ozone tendency due to overhead ozone column
Expand All @@ -152,6 +155,7 @@
type = real
kind = kind_phys
intent = in
optional = True
[errmsg]
standard_name = ccpp_error_message
long_name = error message for error handling in CCPP
Expand Down
2 changes: 2 additions & 0 deletions physics/Interstitials/UFS_SCM_NEPTUNE/GFS_rrtmgp_post.meta
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@
type = real
kind = kind_phys
intent = inout
optional = True
[htrlwc]
standard_name = tendency_of_air_temperature_due_to_longwave_heating_assuming_clear_sky_on_radiation_timestep
long_name = longwave clear sky heating rate
Expand All @@ -479,6 +480,7 @@
type = real
kind = kind_phys
intent = inout
optional = True
[errmsg]
standard_name = ccpp_error_message
long_name = error message for error handling in CCPP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@
type = real
kind = kind_phys
intent = inout
optional = True
[dtidx]
standard_name = cumulative_change_of_state_variables_outer_index
long_name = index of state-variable and process in last dimension of diagnostic tendencies array AKA cumulative_change_index
Expand Down
6 changes: 6 additions & 0 deletions physics/MP/Thompson/mp_thompson.meta
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@
type = real
kind = kind_phys
intent = inout
optional = True
[nwfa2d]
standard_name = tendency_of_hygroscopic_aerosols_at_surface_adjacent_layer
long_name = instantaneous fake water-friendly surface aerosol source
Expand All @@ -169,6 +170,7 @@
type = real
kind = kind_phys
intent = inout
optional = True
[nifa2d]
standard_name = tendency_of_nonhygroscopic_ice_nucleating_aerosols_at_surface_adjacent_layer
long_name = instantaneous fake ice-friendly surface aerosol source
Expand All @@ -177,6 +179,7 @@
type = real
kind = kind_phys
intent = inout
optional = True
[nwfa]
standard_name = mass_number_concentration_of_hygroscopic_aerosols
long_name = number concentration of water-friendly aerosols
Expand All @@ -185,6 +188,7 @@
type = real
kind = kind_phys
intent = inout
optional = True
[nifa]
standard_name = mass_number_concentration_of_nonhygroscopic_ice_nucleating_aerosols
long_name = number concentration of ice-friendly aerosols
Expand All @@ -193,6 +197,7 @@
type = real
kind = kind_phys
intent = inout
optional = True
[tgrs]
standard_name = air_temperature
long_name = model layer mean temperature
Expand Down Expand Up @@ -466,6 +471,7 @@
dimensions = ()
type = logical
intent = in
optional = True
[tgrs]
standard_name = air_temperature_of_new_state
long_name = model layer mean temperature
Expand Down
1 change: 1 addition & 0 deletions physics/PBL/MYJ/myjpbl_wrapper.meta
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@
type = real
kind = kind_phys
intent = inout
optional = True
[dtidx]
standard_name = cumulative_change_of_state_variables_outer_index
long_name = index of state-variable and process in last dimension of diagnostic tendencies array AKA cumulative_change_index
Expand Down
1 change: 1 addition & 0 deletions physics/PBL/MYNN_EDMF/mynnedmf_wrapper.meta
Original file line number Diff line number Diff line change
Expand Up @@ -1114,6 +1114,7 @@
type = real
kind = kind_phys
intent = inout
optional = True
[dtidx]
standard_name = cumulative_change_of_state_variables_outer_index
long_name = index of state-variable and process in last dimension of diagnostic tendencies array AKA cumulative_change_index
Expand Down
1 change: 1 addition & 0 deletions physics/PBL/YSU/ysuvdif.meta
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,7 @@
type = real
kind = kind_phys
intent = in
optional = True
[dtidx]
standard_name = cumulative_change_of_state_variables_outer_index
long_name = index of state-variable and process in last dimension of diagnostic tendencies array AKA cumulative_change_index
Expand Down
1 change: 1 addition & 0 deletions physics/PBL/saYSU/shinhongvdif.meta
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@
type = real
kind = kind_phys
intent = inout
optional = True
[dtidx]
standard_name = cumulative_change_of_state_variables_outer_index
long_name = index of state-variable and process in last dimension of diagnostic tendencies array AKA cumulative_change_index
Expand Down
9 changes: 9 additions & 0 deletions physics/Radiation/RRTMG/radlw_main.meta
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@
type = real
kind = kind_phys
intent = inout
optional = True
[cld_lwp]
standard_name = cloud_liquid_water_path
long_name = cloud liquid water path
Expand All @@ -371,6 +372,7 @@
type = real
kind = kind_phys
intent = in
optional = True
[cld_ref_liq]
standard_name = mean_effective_radius_for_liquid_cloud
long_name = mean effective radius for liquid cloud
Expand All @@ -379,6 +381,7 @@
type = real
kind = kind_phys
intent = in
optional = True
[cld_iwp]
standard_name = cloud_ice_water_path
long_name = cloud ice water path
Expand All @@ -387,6 +390,7 @@
type = real
kind = kind_phys
intent = in
optional = True
[cld_ref_ice]
standard_name = mean_effective_radius_for_ice_cloud
long_name = mean effective radius for ice cloud
Expand All @@ -395,6 +399,7 @@
type = real
kind = kind_phys
intent = in
optional = True
[cld_rwp]
standard_name = cloud_rain_water_path
long_name = cloud ice water path
Expand All @@ -403,6 +408,7 @@
type = real
kind = kind_phys
intent = in
optional = True
[cld_ref_rain]
standard_name = mean_effective_radius_for_rain_drop
long_name = mean effective radius for rain drop
Expand All @@ -411,6 +417,7 @@
type = real
kind = kind_phys
intent = in
optional = True
[cld_swp]
standard_name = cloud_snow_water_path
long_name = cloud snow water path
Expand All @@ -419,6 +426,7 @@
type = real
kind = kind_phys
intent = in
optional = True
[cld_ref_snow]
standard_name = mean_effective_radius_for_snow_flake
long_name = mean effective radius for snow flake
Expand All @@ -427,6 +435,7 @@
type = real
kind = kind_phys
intent = in
optional = True
[errmsg]
standard_name = ccpp_error_message
long_name = error message for error handling in CCPP
Expand Down
10 changes: 10 additions & 0 deletions physics/Radiation/RRTMG/radsw_main.meta
Original file line number Diff line number Diff line change
Expand Up @@ -424,13 +424,15 @@
type = real
kind = kind_phys
intent = inout
optional = True
[fdncmp]
standard_name = components_of_surface_downward_shortwave_fluxes
long_name = derived type for special components of surface downward shortwave fluxes
units = W m-2
dimensions = (horizontal_loop_extent)
type = cmpfsw_type
intent = inout
optional = True
[cld_lwp]
standard_name = cloud_liquid_water_path
long_name = cloud liquid water path
Expand All @@ -439,6 +441,7 @@
type = real
kind = kind_phys
intent = in
optional = True
[cld_ref_liq]
standard_name = mean_effective_radius_for_liquid_cloud
long_name = mean effective radius for liquid cloud
Expand All @@ -447,6 +450,7 @@
type = real
kind = kind_phys
intent = in
optional = True
[cld_iwp]
standard_name = cloud_ice_water_path
long_name = cloud ice water path
Expand All @@ -455,6 +459,7 @@
type = real
kind = kind_phys
intent = in
optional = True
[cld_ref_ice]
standard_name = mean_effective_radius_for_ice_cloud
long_name = mean effective radius for ice cloud
Expand All @@ -463,6 +468,7 @@
type = real
kind = kind_phys
intent = in
optional = True
[cld_rwp]
standard_name = cloud_rain_water_path
long_name = cloud rain water path
Expand All @@ -471,6 +477,7 @@
type = real
kind = kind_phys
intent = in
optional = True
[cld_ref_rain]
standard_name = mean_effective_radius_for_rain_drop
long_name = mean effective radius for rain drop
Expand All @@ -479,6 +486,7 @@
type = real
kind = kind_phys
intent = in
optional = True
[cld_swp]
standard_name = cloud_snow_water_path
long_name = cloud snow water path
Expand All @@ -487,6 +495,7 @@
type = real
kind = kind_phys
intent = in
optional = True
[cld_ref_snow]
standard_name = mean_effective_radius_for_snow_flake
long_name = mean effective radius for snow flake
Expand All @@ -495,6 +504,7 @@
type = real
kind = kind_phys
intent = in
optional = True
[errmsg]
standard_name = ccpp_error_message
long_name = error message for error handling in CCPP
Expand Down

0 comments on commit 37475d2

Please sign in to comment.