Skip to content

Commit 0a98c68

Browse files
ufsatm cleanup (NOAA-EMC#1108)
Completes additional clean up of assign_importdata
1 parent 862c589 commit 0a98c68

5 files changed

Lines changed: 232 additions & 300 deletions

File tree

ccpp/data/GFS_typedefs.F90

Lines changed: 12 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -539,24 +539,14 @@ module GFS_typedefs
539539
real (kind=kind_phys), pointer :: sfculw(:) => null() !< total sky sfc upward lw flux ( w/m**2 )
540540

541541
!--- incoming quantities
542-
real (kind=kind_phys), pointer :: dusfcin_cpl(:) => null() !< aoi_fld%dusfcin(item,lan)
543-
real (kind=kind_phys), pointer :: dvsfcin_cpl(:) => null() !< aoi_fld%dvsfcin(item,lan)
544-
real (kind=kind_phys), pointer :: dtsfcin_cpl(:) => null() !< aoi_fld%dtsfcin(item,lan)
545-
real (kind=kind_phys), pointer :: dqsfcin_cpl(:) => null() !< aoi_fld%dqsfcin(item,lan)
546-
real (kind=kind_phys), pointer :: ulwsfcin_cpl(:) => null() !< aoi_fld%ulwsfcin(item,lan)
547-
! real (kind=kind_phys), pointer :: tseain_cpl(:) => null() !< aoi_fld%tseain(item,lan)
548-
! real (kind=kind_phys), pointer :: tisfcin_cpl(:) => null() !< aoi_fld%tisfcin(item,lan)
549-
! real (kind=kind_phys), pointer :: ficein_cpl(:) => null() !< aoi_fld%ficein(item,lan)
550-
! real (kind=kind_phys), pointer :: hicein_cpl(:) => null() !< aoi_fld%hicein(item,lan)
551-
real (kind=kind_phys), pointer :: hsnoin_cpl(:) => null() !< aoi_fld%hsnoin(item,lan)
552-
! real (kind=kind_phys), pointer :: sfc_alb_nir_dir_cpl(:) => null() !< sfc nir albedo for direct rad
553-
! real (kind=kind_phys), pointer :: sfc_alb_nir_dif_cpl(:) => null() !< sfc nir albedo for diffuse rad
554-
! real (kind=kind_phys), pointer :: sfc_alb_vis_dir_cpl(:) => null() !< sfc vis albedo for direct rad
555-
! real (kind=kind_phys), pointer :: sfc_alb_vis_dif_cpl(:) => null() !< sfc vis albedo for diffuse rad
556-
!--- only variable needed for cplwav2atm=.TRUE.
557-
! real (kind=kind_phys), pointer :: zorlwav_cpl(:) => null() !< roughness length from wave model
542+
real (kind=kind_phys), pointer :: dusfcin_cpl(:) => null() !< sfc u momentum flux
543+
real (kind=kind_phys), pointer :: dvsfcin_cpl(:) => null() !< sfc v momentum flux
544+
real (kind=kind_phys), pointer :: dtsfcin_cpl(:) => null() !< sfc sensible heat flux input
545+
real (kind=kind_phys), pointer :: dqsfcin_cpl(:) => null() !< sfc latent heat flux
546+
real (kind=kind_phys), pointer :: ulwsfcin_cpl(:) => null() !< sfc upwelling LW flux
547+
real (kind=kind_phys), pointer :: hsnoin_cpl(:) => null() !< sfc snow depth over sea ice
558548
!--- also needed for ice/ocn coupling
559-
real (kind=kind_phys), pointer :: slimskin_cpl(:)=> null() !< aoi_fld%slimskin(item,lan)
549+
real (kind=kind_phys), pointer :: slimskin_cpl(:)=> null() !< sea/land/ice mask
560550
!--- variables needed for use_med_flux =.TRUE.
561551
real (kind=kind_phys), pointer :: dusfcin_med(:) => null() !< sfc u momentum flux over ocean
562552
real (kind=kind_phys), pointer :: dvsfcin_med(:) => null() !< sfc v momentum flux over ocean
@@ -806,8 +796,6 @@ module GFS_typedefs
806796
logical :: rrfs_sd !< default no rrfs_sd collection
807797
logical :: cpl_fire !< default no fire_behavior collection
808798
logical :: use_cice_alb !< default .false. - i.e. don't use albedo imported from the ice model
809-
logical :: cpl_imp_mrg !< default no merge import with internal forcings
810-
logical :: cpl_imp_dbg !< default no write import data to file post merge
811799
logical :: use_med_flux !< default .false. - i.e. don't use atmosphere-ocean fluxes imported from mediator
812800

813801
!--- cdeps inline parameters
@@ -847,7 +835,7 @@ module GFS_typedefs
847835
integer :: tend_opt_shal_conv
848836
integer :: tend_opt_mp
849837
integer :: tend_opt_stoch
850-
838+
851839
logical :: gfs_phys_time_vary_is_init=.false. !< GFS_phys_time_vary interstitial initialization flag
852840

853841
!--- radiation control parameters
@@ -1100,7 +1088,7 @@ module GFS_typedefs
11001088
real(kind=kind_phys) :: rr_min !< multiplicative tuning parameter for microphysical sedimentation minimum threshold
11011089
real(kind=kind_phys) :: fs_fac_rain !< adjustment for rain fall speed
11021090
real(kind=kind_phys) :: fs_fac_snow !< adjustment for snow fall speed
1103-
1091+
11041092
!--- GFDL microphysical paramters
11051093
logical :: lgfdlmprad !< flag for GFDL mp scheme and radiation consistency
11061094
logical :: phys_hydrostatic
@@ -3115,13 +3103,6 @@ subroutine coupling_create (Coupling, Model)
31153103
Coupling%tsfci_cpl = clear_val
31163104
endif
31173105

3118-
! if (Model%cplwav2atm) then
3119-
!--- incoming quantities
3120-
! allocate (Coupling%zorlwav_cpl (IM))
3121-
3122-
! Coupling%zorlwav_cpl = clear_val
3123-
! endif
3124-
31253106
! -- additional coupling options for air quality
31263107
if (Model%cplflx .or. Model%cpllnd .or. Model%cpl_fire .or. (Model%cplaqm .and. .not.Model%cplflx)) then
31273108
allocate (Coupling%psurfi_cpl (IM))
@@ -3179,31 +3160,15 @@ subroutine coupling_create (Coupling, Model)
31793160
allocate (Coupling%dtsfcin_cpl (IM))
31803161
allocate (Coupling%dqsfcin_cpl (IM))
31813162
allocate (Coupling%ulwsfcin_cpl (IM))
3182-
! allocate (Coupling%tseain_cpl (IM))
3183-
! allocate (Coupling%tisfcin_cpl (IM))
3184-
! allocate (Coupling%ficein_cpl (IM))
3185-
! allocate (Coupling%hicein_cpl (IM))
31863163
allocate (Coupling%hsnoin_cpl (IM))
3187-
! allocate (Coupling%sfc_alb_nir_dir_cpl (IM))
3188-
! allocate (Coupling%sfc_alb_nir_dif_cpl (IM))
3189-
! allocate (Coupling%sfc_alb_vis_dir_cpl (IM))
3190-
! allocate (Coupling%sfc_alb_vis_dif_cpl (IM))
31913164

31923165
Coupling%slimskin_cpl = clear_val
31933166
Coupling%dusfcin_cpl = clear_val
31943167
Coupling%dvsfcin_cpl = clear_val
31953168
Coupling%dtsfcin_cpl = clear_val
31963169
Coupling%dqsfcin_cpl = clear_val
31973170
Coupling%ulwsfcin_cpl = clear_val
3198-
! Coupling%tseain_cpl = clear_val
3199-
! Coupling%tisfcin_cpl = clear_val
3200-
! Coupling%ficein_cpl = clear_val
3201-
! Coupling%hicein_cpl = clear_val
32023171
Coupling%hsnoin_cpl = clear_val
3203-
! Coupling%sfc_alb_nir_dir_cpl = clear_val
3204-
! Coupling%sfc_alb_nir_dif_cpl = clear_val
3205-
! Coupling%sfc_alb_vis_dir_cpl = clear_val
3206-
! Coupling%sfc_alb_vis_dif_cpl = clear_val
32073172

32083173
! -- Coupling options to retrive atmosphere-ocean fluxes from mediator
32093174
if (Model%use_med_flux) then
@@ -3555,8 +3520,6 @@ subroutine control_initialize (Model, nlunit, fn_nml, me, &
35553520
logical :: rrfs_sd = .false. !< default no rrfs_sd collection
35563521
logical :: cpl_fire = .false. !< default no fire behavior colleciton
35573522
logical :: use_cice_alb = .false. !< default no cice albedo
3558-
logical :: cpl_imp_mrg = .false. !< default no merge import with internal forcings
3559-
logical :: cpl_imp_dbg = .false. !< default no write import data to file post merge
35603523
logical :: use_med_flux = .false. !< default no atmosphere-ocean fluxes from mediator
35613524

35623525
!--- cdeps inline parameters
@@ -3761,7 +3724,7 @@ subroutine control_initialize (Model, nlunit, fn_nml, me, &
37613724
real(kind=kind_phys) :: rr_min = 1000.0 !< multiplicative tuning parameter for microphysical sedimentation minimum threshold
37623725
real(kind=kind_phys) :: fs_fac_rain = 1.0 !< adjustment for rain fall speed
37633726
real(kind=kind_phys) :: fs_fac_snow = 1.0 !< adjustment for snow fall speed
3764-
3727+
37653728
!--- GFDL microphysical parameters
37663729
logical :: lgfdlmprad = .false. !< flag for GFDLMP radiation interaction
37673730

@@ -4246,7 +4209,7 @@ subroutine control_initialize (Model, nlunit, fn_nml, me, &
42464209
tend_opt_mp, tend_opt_stoch, &
42474210
!--- coupling parameters
42484211
cplflx, cplice, cplocn2atm, cplwav, cplwav2atm, cplaqm, &
4249-
cplchm, cpllnd, cpllnd2atm, cpl_imp_mrg, cpl_imp_dbg, &
4212+
cplchm, cpllnd, cpllnd2atm, &
42504213
cpl_fire, rrfs_sd, use_cice_alb, &
42514214
#ifdef IDEA_PHYS
42524215
lsidea, weimer_model, f107_kp_size, f107_kp_interval, &
@@ -4680,7 +4643,7 @@ subroutine control_initialize (Model, nlunit, fn_nml, me, &
46804643
Model%tend_opt_shal_conv = tend_opt_shal_conv
46814644
Model%tend_opt_mp = tend_opt_mp
46824645
Model%tend_opt_stoch = tend_opt_stoch
4683-
4646+
46844647
Model%ipr = min(minval(Model%blksz), 10)
46854648
!--- coupling parameters
46864649
Model%cplflx = cplflx
@@ -4701,8 +4664,6 @@ subroutine control_initialize (Model, nlunit, fn_nml, me, &
47014664
Model%cpllnd = cpllnd
47024665
Model%cpllnd2atm = cpllnd2atm
47034666
Model%use_cice_alb = use_cice_alb
4704-
Model%cpl_imp_mrg = cpl_imp_mrg
4705-
Model%cpl_imp_dbg = cpl_imp_dbg
47064667
Model%use_med_flux = use_med_flux
47074668

47084669
!--- cdeps inline parameters
@@ -6976,8 +6937,6 @@ subroutine control_print(Model)
69766937
print *, ' rrfs_sd : ', Model%rrfs_sd
69776938
print *, ' cpl_fire : ', Model%cpl_fire
69786939
print *, ' use_cice_alb : ', Model%use_cice_alb
6979-
print *, ' cpl_imp_mrg : ', Model%cpl_imp_mrg
6980-
print *, ' cpl_imp_dbg : ', Model%cpl_imp_dbg
69816940
print *, ' use_med_flux : ', Model%use_med_flux
69826941
print *, ' use_cdeps_inline : ', Model%use_cdeps_inline
69836942
if(Model%imfdeepcnv == Model%imfdeepcnv_gf .or.Model%imfdeepcnv == Model%imfdeepcnv_c3) then

ccpp/data/GFS_typedefs.meta

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3437,7 +3437,7 @@
34373437
kind = kind_phys
34383438
active = (do_cdeps_inline)
34393439
[mask_dat]
3440-
standard_name = land_sea_mask_from_data
3440+
standard_name = land_sea_mask_from_data
34413441
long_name = landmask
34423442
units = flag
34433443
dimensions = (horizontal_dimension)
@@ -3841,18 +3841,6 @@
38413841
units = flag
38423842
dimensions = ()
38433843
type = logical
3844-
[cpl_imp_mrg]
3845-
standard_name = flag_for_merging_imported_data
3846-
long_name = flag controlling cpl_imp_mrg for imported data (default off)
3847-
units = flag
3848-
dimensions = ()
3849-
type = logical
3850-
[cpl_imp_dbg]
3851-
standard_name = flag_for_debugging_merged_imported_data
3852-
long_name = flag controlling cpl_imp_dbg for imported data (default off)
3853-
units = flag
3854-
dimensions = ()
3855-
type = logical
38563844
[use_cice_alb]
38573845
standard_name = flag_for_cice_albedo
38583846
long_name = flag for using ice albedos form CICE when coupled (default false)
@@ -3928,7 +3916,7 @@
39283916
long_name = initial date with different size and ordering
39293917
units = none
39303918
dimensions = (4)
3931-
type = integer
3919+
type = integer
39323920
[tend_opt_swrad]
39333921
standard_name = control_for_application_method_of_shortwave_radiation_tendencies
39343922
long_name = control for application method of shortwave radiation tendencies

fv3/atmos_cubed_sphere

0 commit comments

Comments
 (0)