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

Sm may182021 #662

Merged
merged 94 commits into from
Jul 13, 2021
Merged
Show file tree
Hide file tree
Changes from 78 commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
f94cc61
adding print of iaermdl
SMoorthi-emc Aug 31, 2020
6b561c7
Merge remote-tracking branch 'upstream/master' into SM_Sep09092020
SMoorthi-emc Sep 9, 2020
736f8f6
some surface fixes
SMoorthi-emc Sep 11, 2020
28cf654
some updates to mg3
SMoorthi-emc Sep 21, 2020
539afef
fix a typo in comment
SMoorthi-emc Sep 25, 2020
38ec383
Merge remote-tracking branch 'upstream/master' into SM_Sep09092020
SMoorthi-emc Sep 26, 2020
4318e5c
Merge remote-tracking branch 'upstream/master' into SM_Sep302020
SMoorthi-emc Sep 30, 2020
1aaa5b3
Merge remote-tracking branch 'upstream/master' into SMPct102020
SMoorthi-emc Oct 10, 2020
ff0c766
fixing issues related min_seaice and min_lakeice in surface composite
SMoorthi-emc Oct 19, 2020
12a2b9c
adding Shan's slmsk change to GFS_surface_composites - does not chang…
SMoorthi-emc Oct 19, 2020
b665a5f
updating GFS_surface_composites.F90 to make coupled restart reprodicible
SMoorthi-emc Oct 20, 2020
38094d6
some additional updates
SMoorthi-emc Oct 21, 2020
109ec79
some updated comments
SMoorthi-emc Oct 23, 2020
5d50830
some compacting of code that does not change results
SMoorthi-emc Oct 23, 2020
3b9cea2
Revert "some compacting of code that does not change results"
SMoorthi-emc Oct 26, 2020
d004773
some additional fixes - standalone fractional grid is still not repro…
SMoorthi-emc Oct 27, 2020
de54bb4
some additional minor update
SMoorthi-emc Oct 27, 2020
803ceac
reversing mg3 change and some other updates - yet to be tested as Her…
SMoorthi-emc Nov 7, 2020
a0daf0c
some minor update to GFS_surface_composites.F90 - still has issue in …
SMoorthi-emc Nov 12, 2020
0a69d11
some update to GFS_surface_generic.F90 - restart run with frac_grid=.…
SMoorthi-emc Nov 14, 2020
64028eb
minor update to gcycle
SMoorthi-emc Nov 16, 2020
3975a97
after merging with ccpp-physics/master on Nov19, 2020
SMoorthi-emc Nov 20, 2020
f5c496b
updating rascnv.meta
SMoorthi-emc Nov 29, 2020
0817a04
after merging with ccpp-physics/master on dec02,2020
SMoorthi-emc Dec 2, 2020
aa2b98b
some minor update to surface_composite
SMoorthi-emc Dec 5, 2020
d4ececd
some updates to sfc codes
SMoorthi-emc Dec 9, 2020
217b91a
changing > to >=
SMoorthi-emc Dec 11, 2020
5a83627
some minor updates to surface_composite logic and consistent emissivity
SMoorthi-emc Dec 22, 2020
7aae641
Merge remote-tracking branch 'upstream/master' into SM_Dec022020
SMoorthi-emc Dec 22, 2020
44a3c5c
after merging with ccpp-physics master on Dec 22
SMoorthi-emc Dec 22, 2020
340ee5c
fixing an error in converting nsst code from IPD physics driver to ccpp
SMoorthi-emc Dec 23, 2020
3f4539a
Merge remote-tracking branch 'upstream/master' into SM_Jan042021
SMoorthi-emc Jan 4, 2021
584faea
printing rsics in sfcsub
SMoorthi-emc Jan 11, 2021
1f53483
some update to sfcsub.F
SMoorthi-emc Jan 14, 2021
033e61b
after merging with ccpp-physics/master on Jan14
SMoorthi-emc Jan 15, 2021
111e278
Merge remote-tracking branch 'upstream/master' into SM_Jan142021
SMoorthi-emc Jan 20, 2021
636d9c8
after merging with ccpp-physics/master on Jan 28, 2021
SMoorthi-emc Jan 29, 2021
2bfc14f
Merge branch 'SM_Jan142021' of https://github.com/SMoorthi-emc/ccpp-p…
SMoorthi-emc Jan 29, 2021
5a1454e
Merge remote-tracking branch 'upstream/master' into SM_Jan142021
SMoorthi-emc Feb 6, 2021
930ffab
some updates to RAS
SMoorthi-emc Feb 18, 2021
58bed15
Merge remote-tracking branch 'upstream/master' into SM_Jan142021
SMoorthi-emc Feb 18, 2021
1007656
Merge remote-tracking branch 'upstream/master' into SM_Jan142021
SMoorthi-emc Feb 19, 2021
aa982a3
Merge remote-tracking branch 'upstream/master' into SM_Jan142021
SMoorthi-emc Feb 25, 2021
30472fb
after merging with ccpp/master and adding change to average ln(z0)
SMoorthi-emc Feb 25, 2021
60c9a72
replacing flag_cice by kdt
SMoorthi-emc Feb 27, 2021
925020b
minor update of ras
SMoorthi-emc Mar 1, 2021
04132df
updating the setemis routine to use landfrac and fice
SMoorthi-emc Mar 3, 2021
bea0e5e
after merging with ccpp-physics/master on Mar03, 2021
SMoorthi-emc Mar 3, 2021
042672e
some fixes im MGx and radsw_main
SMoorthi-emc Mar 8, 2021
fa43e99
updating RAS and reverting zorl composite to linear
SMoorthi-emc Mar 11, 2021
4bd4bfd
Merge remote-tracking branch 'upstream/master' into SM_Mar122021
SMoorthi-emc Mar 18, 2021
ee61e91
after merging with ccpp-physics/master on March 22, 2021
SMoorthi-emc Mar 22, 2021
4f5b7c8
after merging with Merra2 aerosol updates in physics
SMoorthi-emc Mar 31, 2021
a3b1ebd
Merge remote-tracking branch 'upstream/master' into SM_Mar222021
SMoorthi-emc Mar 31, 2021
cad0649
adding debug
SMoorthi-emc Apr 2, 2021
680e32b
remove a duplicate line in GFS_surface_composites.F90
SMoorthi-emc Apr 2, 2021
4e32161
after merging with ccpp-physics/maste on Apr09, 2021
SMoorthi-emc Apr 9, 2021
4b2ce2e
after merging with ccpp-physics/master
SMoorthi-emc Apr 16, 2021
be7980f
after merging with ccpp-physics/master on Apr 19, 2021
SMoorthi-emc Apr 19, 2021
9393e61
updating sfcsub for fractional grid and a fix in sfc_sice
SMoorthi-emc Apr 28, 2021
c54012c
some additional updates in cycling codes
SMoorthi-emc Apr 29, 2021
0f227e8
some minor fix in gcycle
SMoorthi-emc Apr 29, 2021
d3075b6
after merging with ccpp-physics/master
SMoorthi-emc Apr 29, 2021
7af9ecd
after merging with ccpp-physics/master on April 30
SMoorthi-emc Apr 30, 2021
0ee7f61
after merging with ccpp-physics/master on Apr30
SMoorthi-emc May 1, 2021
d4d90c9
some optimization of aerosol climo processing
SMoorthi-emc May 4, 2021
cfdd5ad
some code optimization
SMoorthi-emc May 8, 2021
04b5624
removing some blanks
SMoorthi-emc May 11, 2021
aff96dd
removing some blanks in sfcsub
SMoorthi-emc May 11, 2021
d4fe665
updating to include separate logicvals lake and use_flake, the latter…
SMoorthi-emc May 11, 2021
71d019c
creating a version without ncld
SMoorthi-emc May 15, 2021
bc1b958
Merge remote-tracking branch 'upstream/main' into SM_May142021
SMoorthi-emc May 18, 2021
6c912aa
removing Interstitial%nncl and replacing Model%ncnd
SMoorthi-emc May 18, 2021
a6d1944
Merge remote-tracking branch 'upstream/main' into SM_May182021
SMoorthi-emc May 19, 2021
d642ecf
fixing a bug in surface cycling and updating for fractional grid
SMoorthi-emc May 27, 2021
941ff1d
after merging with ccpp-physics/main on May28
SMoorthi-emc May 28, 2021
466d4b4
adding snow depth and weasd over land to SfcProps and fixing some iss…
SMoorthi-emc Jun 8, 2021
05a702e
removing original flake_driver
SMoorthi-emc Jun 9, 2021
d80a866
removing micro_mg3_0.F90_Sep19
SMoorthi-emc Jun 9, 2021
d52eab7
Merge branch 'SM_May182021' of https://github.com/SMoorthi-emc/ccpp-p…
SMoorthi-emc Jun 9, 2021
a1c06ba
removing accidental commenting in GFS_surface_composites.F90
SMoorthi-emc Jun 9, 2021
dda209c
putting the comment back on uustar_wat as is is computed in sfc_diff.…
SMoorthi-emc Jun 9, 2021
d77e916
Updating GFS_surface_composites.F90 to use log in compositing zorl be…
SMoorthi-emc Jun 9, 2021
a59b8ff
Merge remote-tracking branch 'upstream/main' into SM_May182021
SMoorthi-emc Jun 10, 2021
6910dde
adding a blank space
SMoorthi-emc Jun 15, 2021
c094f4a
Merge remote-tracking branch 'upstream/main' into SM_May182021
SMoorthi-emc Jun 16, 2021
e4528fb
a minor change in RAS
SMoorthi-emc Jun 19, 2021
9cdc2b5
reverting lake to use_flake in sfc_ocean
SMoorthi-emc Jun 21, 2021
0a6f3c1
change style in GFS_phys_time_vary.scm.F90 and remove variables in GF…
grantfirl Jun 25, 2021
fe5f2fd
fix some issues related to running rap and hrrr rt tests
SMoorthi-emc Jun 30, 2021
34db9f7
Merge remote-tracking branch 'upstream/main' into SM_May182021
SMoorthi-emc Jul 1, 2021
47d1da9
Merge remote-tracking branch 'upstream/SM_May182021_gjf' into SM_May1…
SMoorthi-emc Jul 2, 2021
bc38771
Merge remote-tracking branch 'upstream/main' into SM_May182021
SMoorthi-emc Jul 9, 2021
e7aeb37
Revert "Merge remote-tracking branch 'upstream/main' into SM_May182021"
SMoorthi-emc Jul 12, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions physics/GFS_MP_generic.F90
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ end subroutine GFS_MP_generic_post_init
!!
!> \section gfs_mp_gen GFS MP Generic Post General Algorithm
!> @{
subroutine GFS_MP_generic_post_run(im, levs, kdt, nrcm, ncld, nncl, ntcw, ntrac, imp_physics, imp_physics_gfdl, &
subroutine GFS_MP_generic_post_run(im, levs, kdt, nrcm, nncl, ntcw, ntrac, imp_physics, imp_physics_gfdl, &
imp_physics_thompson, imp_physics_mg, imp_physics_fer_hires, cal_pre, lssav, ldiag3d, qdiag3d, cplflx, cplchm, con_g, dtf, frain, rainc, rain1, &
rann, xlat, xlon, gt0, gq0, prsl, prsi, phii, tsfc, ice, snow, graupel, save_t, save_qv, rain0, ice0, snow0, &
graupel0, del, rain, domr_diag, domzr_diag, domip_diag, doms_diag, tprcp, srflag, sr, cnvprcp, totprcp, totice, &
Expand All @@ -97,7 +97,7 @@ subroutine GFS_MP_generic_post_run(im, levs, kdt, nrcm, ncld, nncl, ntcw, ntrac,

implicit none

integer, intent(in) :: im, levs, kdt, nrcm, ncld, nncl, ntcw, ntrac
integer, intent(in) :: im, levs, kdt, nrcm, nncl, ntcw, ntrac
integer, intent(in) :: imp_physics, imp_physics_gfdl, imp_physics_thompson, imp_physics_mg, imp_physics_fer_hires
logical, intent(in) :: cal_pre, lssav, ldiag3d, qdiag3d, cplflx, cplchm

Expand Down Expand Up @@ -373,7 +373,7 @@ subroutine GFS_MP_generic_post_run(im, levs, kdt, nrcm, ncld, nncl, ntcw, ntrac,
do i=1, im
work1(i) = zero
enddo
if (ncld > 0) then
if (nncl > 0) then
do ic = ntcw, ntcw+nncl-1
do i=1,im
work1(i) = work1(i) + gq0(i,k,ic)
Expand Down
16 changes: 4 additions & 12 deletions physics/GFS_MP_generic.meta
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
intent = in
optional = F
[nncl]
standard_name = number_of_tracers_for_cloud_condensate
long_name = number of tracers for cloud condensate
standard_name = number_of_cloud_condensate_types
long_name = number of cloud condensate types
units = count
dimensions = ()
type = integer
Expand Down Expand Up @@ -176,17 +176,9 @@
type = integer
intent = in
optional = F
[ncld]
standard_name = number_of_hydrometeors
long_name = choice of cloud scheme / number of hydrometeors
units = count
dimensions = ()
type = integer
intent = in
optional = F
[nncl]
standard_name = number_of_tracers_for_cloud_condensate
long_name = number of tracers for cloud condensate
standard_name = number_of_cloud_condensate_types
long_name = number of cloud condensate types
units = count
dimensions = ()
type = integer
Expand Down
9 changes: 4 additions & 5 deletions physics/GFS_PBL_generic.F90
Original file line number Diff line number Diff line change
Expand Up @@ -326,14 +326,13 @@ subroutine GFS_PBL_generic_post_run (im, levs, nvdiff, ntrac,
implicit none

integer, parameter :: kp = kind_phys
integer, intent(in) :: im, levs, nvdiff, ntrac, ntchs, ntchm
integer, intent(in) :: im, levs, nvdiff, ntrac, ntchs, ntchm, kdt
integer, intent(in) :: ntqv, ntcw, ntiw, ntrw, ntsw, ntlnc, ntinc, ntrnc, ntsnc, ntgnc, ntwa, ntia, ntgl, ntoz, ntke, ntkev, nqrimef
logical, intent(in) :: trans_aero
integer, intent(in) :: imp_physics, imp_physics_gfdl, imp_physics_thompson, imp_physics_wsm6
integer, intent(in) :: imp_physics_zhao_carr, imp_physics_mg, imp_physics_fer_hires
logical, intent(in) :: ltaerosol, cplflx, cplchm, lssav, ldiag3d, qdiag3d, lsidea
logical, intent(in) :: hybedmf, do_shoc, satmedmf, shinhong, do_ysu
integer, intent(in) :: kdt

logical, intent(in) :: flag_for_pbl_generic_tend
real(kind=kind_phys), dimension(:,:), intent(in) :: save_u, save_v, save_t
Expand Down Expand Up @@ -546,14 +545,14 @@ subroutine GFS_PBL_generic_post_run (im, levs, nvdiff, ntrac,

if (cplflx) then
do i=1,im
if (oceanfrac(i) > zero) then ! Ocean only, NO LAKES
if (oceanfrac(i) > zero) then ! Ocean only, NO LAKES
if ( .not. wet(i)) then ! no open water
if ( kdt > 1 ) then !use results from CICE
if (kdt > 1) then !use results from CICE
dusfci_cpl(i) = dusfc_cice(i)
dvsfci_cpl(i) = dvsfc_cice(i)
dtsfci_cpl(i) = dtsfc_cice(i)
dqsfci_cpl(i) = dqsfc_cice(i)
else !use PBL fluxes when CICE fluxes is unavailable
else !use PBL fluxes when CICE fluxes is unavailable
dusfci_cpl(i) = dusfc1(i)
dvsfci_cpl(i) = dvsfc1(i)
dtsfci_cpl(i) = dtsfc1(i)
Expand Down
30 changes: 15 additions & 15 deletions physics/GFS_phys_time_vary.fv3.F90
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ subroutine GFS_phys_time_vary_init (
isot, ivegsrc, nlunit, sncovr, sncovr_ice, lsm, lsm_noahmp, lsm_ruc, min_seaice, &
fice, landfrac, vtype, weasd, lsoil, zs, dzs, lsnow_lsm_lbound, lsnow_lsm_ubound, &
tvxy, tgxy, tahxy, canicexy, canliqxy, eahxy, cmxy, chxy, fwetxy, sneqvoxy, alboldxy,&
qsnowxy, wslakexy, albdvis_lnd, albdnir_lnd, albivis_lnd, albinir_lnd, albdvis_ice, &
qsnowxy, wslakexy, albdvis_lnd, albdnir_lnd, albivis_lnd, albinir_lnd, albdvis_ice, &
albdnir_ice, albivis_ice, albinir_ice, emiss_lnd, emiss_ice, taussxy, waxy, wtxy, &
zwtxy, xlaixy, xsaixy, lfmassxy, stmassxy, rtmassxy, woodxy, stblcpxy, fastcpxy, &
smcwtdxy, deeprechxy, rechxy, snowxy, snicexy, snliqxy, tsnoxy , smoiseq, zsnsoxy, &
Expand Down Expand Up @@ -319,10 +319,10 @@ subroutine GFS_phys_time_vary_init (
jindx2_aer, ddy_aer, xlon_d, &
iindx1_aer, iindx2_aer, ddx_aer, &
me, master)
iamin=min(minval(iindx1_aer), iamin)
iamax=max(maxval(iindx2_aer), iamax)
jamin=min(minval(jindx1_aer), jamin)
jamax=max(maxval(jindx2_aer), jamax)
iamin = min(minval(iindx1_aer), iamin)
iamax = max(maxval(iindx2_aer), iamax)
jamin = min(minval(jindx1_aer), jamin)
jamax = max(maxval(jindx2_aer), jamax)
endif

!$OMP section
Expand Down Expand Up @@ -723,7 +723,7 @@ subroutine GFS_phys_time_vary_timestep_init (
lakefrac, min_seaice, min_lakeice, smc, slc, stc, smois, sh2o, tslb, tiice, tg3, tref, &
tsfc, tsfco, tisfc, hice, fice, facsf, facwf, alvsf, alvwf, alnsf, alnwf, zorli, zorll, &
zorlo, weasd, slope, snoalb, canopy, vfrac, vtype, stype, shdmin, shdmax, snowd, &
cv, cvb, cvt, oro, oro_uf, xlat_d, xlon_d, slmsk, &
cv, cvb, cvt, oro, oro_uf, xlat_d, xlon_d, slmsk, landfrac, &
do_ugwp_v1, jindx1_tau, jindx2_tau, ddy_j1tau, ddy_j2tau, tau_amf, errmsg, errflg)

implicit none
Expand Down Expand Up @@ -760,7 +760,7 @@ subroutine GFS_phys_time_vary_timestep_init (
character(len=*), intent(in) :: input_nml_file(:)
logical, intent(in) :: use_ufo, nst_anl, frac_grid
real(kind_phys), intent(in) :: fhcyc, phour, lakefrac(:), min_seaice, min_lakeice, &
xlat_d(:), xlon_d(:)
xlat_d(:), xlon_d(:), landfrac(:)
real(kind_phys), intent(inout) :: smc(:,:), slc(:,:), stc(:,:), smois(:,:), sh2o(:,:), &
tslb(:,:), tiice(:,:), tg3(:), tref(:), &
tsfc(:), tsfco(:), tisfc(:), hice(:), fice(:), &
Expand Down Expand Up @@ -888,7 +888,7 @@ subroutine GFS_phys_time_vary_timestep_init (
! aerinterpol is using threading inside, don't
! move into OpenMP parallel section above
call aerinterpol (me, master, nthrds, im, idate, &
fhour, jindx1_aer, jindx2_aer,&
fhour, jindx1_aer, jindx2_aer, &
ddy_aer, iindx1_aer, &
iindx2_aer, ddx_aer, &
levs, prsl, aer_nm)
Expand All @@ -897,13 +897,13 @@ subroutine GFS_phys_time_vary_timestep_init (
!> - Call gcycle() to repopulate specific time-varying surface properties for AMIP/forecast runs
if (nscyc > 0) then
if (mod(kdt,nscyc) == 1) THEN
call gcycle (me, nthrds, nx, ny, isc, jsc, nsst, tile_num, nlunit, &
input_nml_file, lsoil, lsoil_lsm, kice, idate, ialb, isot, ivegsrc, &
use_ufo, nst_anl, fhcyc, phour, lakefrac, min_seaice, min_lakeice, &
frac_grid, smc, slc, stc, smois, sh2o, tslb, tiice, tg3, tref, tsfc, &
tsfco, tisfc, hice, fice, facsf, facwf, alvsf, alvwf, alnsf, alnwf, &
zorli, zorll, zorlo, weasd, slope, snoalb, canopy, vfrac, vtype, &
stype, shdmin, shdmax, snowd, cv, cvb, cvt, oro, oro_uf, &
call gcycle (me, nthrds, nx, ny, isc, jsc, nsst, tile_num, nlunit, &
input_nml_file, lsoil, lsoil_lsm, kice, idate, ialb, isot, ivegsrc, &
use_ufo, nst_anl, fhcyc, phour, landfrac, lakefrac, min_seaice, min_lakeice,&
frac_grid, smc, slc, stc, smois, sh2o, tslb, tiice, tg3, tref, tsfc, &
tsfco, tisfc, hice, fice, facsf, facwf, alvsf, alvwf, alnsf, alnwf, &
zorli, zorll, zorlo, weasd, slope, snoalb, canopy, vfrac, vtype, &
stype, shdmin, shdmax, snowd, cv, cvb, cvt, oro, oro_uf, &
xlat_d, xlon_d, slmsk, imap, jmap)
endif
endif
Expand Down
9 changes: 9 additions & 0 deletions physics/GFS_phys_time_vary.fv3.meta
Original file line number Diff line number Diff line change
Expand Up @@ -2006,6 +2006,15 @@
kind = kind_phys
intent = inout
optional = F
[landfrac]
standard_name = land_area_fraction
long_name = fraction of horizontal grid area occupied by land
units = frac
dimensions = (horizontal_dimension)
type = real
kind = kind_phys
intent = in
optional = F
[slmsk]
standard_name = sea_land_ice_mask_real
long_name = landmask: sea/land/ice=0/1/2
Expand Down
4 changes: 2 additions & 2 deletions physics/GFS_radiation_surface.F90
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ subroutine GFS_radiation_surface_run ( &
if (lslwr) then
!> - Call module_radiation_surface::setemis(),to set up surface
!! emissivity for LW radiation.
call setemis (lsm, lsm_noahmp, lsm_ruc, vtype, landfrac, &
call setemis (lsm, lsm_noahmp, lsm_ruc, vtype, &
frac_grid, min_seaice, xlon, xlat, slmsk, &
snowd, sncovr, sncovr_ice, zorl, tsfg, tsfa, &
hprime, semis_lnd, semis_ice, im, &
Expand All @@ -182,7 +182,7 @@ subroutine GFS_radiation_surface_run ( &
!! albedor for SW radiation.

call setalb (slmsk, lsm, lsm_noahmp, lsm_ruc, snowd, sncovr, sncovr_ice, snoalb, &
zorl, coszen, tsfg, tsfa, hprime, landfrac, frac_grid, min_seaice, &
zorl, coszen, tsfg, tsfa, hprime, frac_grid, min_seaice, &
alvsf, alnsf, alvwf, alnwf, facsf, facwf, fice, tisfc, &
albdvis_lnd, albdnir_lnd, albivis_lnd, albinir_lnd, &
albdvis_ice, albdnir_ice, albivis_ice, albinir_ice, &
Expand Down
13 changes: 4 additions & 9 deletions physics/GFS_rrtmg_pre.F90
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ end subroutine GFS_rrtmg_pre_init
! in the CCPP version - they are defined in the interstitial_create routine
subroutine GFS_rrtmg_pre_run (im, levs, lm, lmk, lmp, n_var_lndp, &
imfdeepcnv, imfdeepcnv_gf, me, ncnd, ntrac, num_p3d, npdf3d, ncnvcld3d,&
ntqv, ntcw,ntiw, ntlnc, ntinc, ncld, ntrw, ntsw, ntgl, ntwa, ntoz, &
ntqv, ntcw,ntiw, ntlnc, ntinc, ntrw, ntsw, ntgl, ntwa, ntoz, &
ntclamt, nleffr, nieffr, nseffr, lndp_type, kdt, imp_physics, &
imp_physics_thompson, imp_physics_gfdl, imp_physics_zhao_carr, &
imp_physics_zhao_carr_pdf, imp_physics_mg, imp_physics_wsm6, &
Expand Down Expand Up @@ -83,7 +83,7 @@ subroutine GFS_rrtmg_pre_run (im, levs, lm, lmk, lmp, n_var_lndp, &
imfdeepcnv, &
imfdeepcnv_gf, me, ncnd, ntrac, &
num_p3d, npdf3d, ncnvcld3d, ntqv, &
ntcw, ntiw, ntlnc, ntinc, ncld, &
ntcw, ntiw, ntlnc, ntinc, &
ntrw, ntsw, ntgl, ntwa, ntoz, &
ntclamt, nleffr, nieffr, nseffr, &
lndp_type, &
Expand Down Expand Up @@ -594,7 +594,7 @@ subroutine GFS_rrtmg_pre_run (im, levs, lm, lmk, lmp, n_var_lndp, &
!! call module_radiation_clouds::progcld1()
!! - For Zhao/Moorthi's prognostic cloud+pdfcld,
!! call module_radiation_clouds::progcld3()
!! call module_radiation_clouds::progclduni() for unified cloud and ncld=2
!! call module_radiation_clouds::progclduni() for unified cloud and ncnd>=2

! --- ... obtain cloud information for radiation calculations

Expand Down Expand Up @@ -690,11 +690,6 @@ subroutine GFS_rrtmg_pre_run (im, levs, lm, lmk, lmp, n_var_lndp, &
ccnd(:,:,1) = ccnd(:,:,1) + tracer1(:,1:LMK,ntiw)
ccnd(:,:,1) = ccnd(:,:,1) + tracer1(:,1:LMK,ntsw)
ccnd(:,:,1) = ccnd(:,:,1) + tracer1(:,1:LMK,ntgl)

! else
! do j=1,ncld
! ccnd(:,:,1) = ccnd(:,:,1) + tracer1(:,1:LMK,ntcw+j-1) ! cloud condensate amount
! enddo
endif
do k=1,LMK
do i=1,IM
Expand Down Expand Up @@ -949,7 +944,7 @@ subroutine GFS_rrtmg_pre_run (im, levs, lm, lmk, lmp, n_var_lndp, &
if (imp_physics == imp_physics_zhao_carr .or. imp_physics == imp_physics_mg) then ! zhao/moorthi's prognostic cloud scheme
! or unified cloud and/or with MG microphysics

if (uni_cld .and. ncld >= 2) then
if (uni_cld .and. ncndl >= 2) then
call progclduni (plyr, plvl, tlyr, tvly, ccnd, ncndl, & ! --- inputs
xlat, xlon, slmsk, dz, delp, &
IM, LMK, LMP, cldcov, &
Expand Down
8 changes: 0 additions & 8 deletions physics/GFS_rrtmg_pre.meta
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,6 @@
type = integer
intent = in
optional = F
[ncld]
standard_name = number_of_hydrometeors
long_name = choice of cloud scheme / number of hydrometeors
units = count
dimensions = ()
type = integer
intent = in
optional = F
[ntrw]
standard_name = index_for_rain_water
long_name = tracer index for rain water
Expand Down
2 changes: 1 addition & 1 deletion physics/GFS_rrtmg_setup.F90
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ subroutine GFS_rrtmg_setup_init ( &
print *,' In rad_initialize (GFS_rrtmg_setup_init), before calling radinit'
print *,' si =',si
print *,' levr=',levr,' ictm=',ictm,' isol=',isol,' ico2=',ico2,&
& ' iaer=',iaer,' ntcw=',ntcw
& ' iaermdl=',iaermdl,' iaerflg=',iaerflg
print *,' np3d=',num_p3d,' ntoz=',ntoz, &
& ' iovr=',iovr,' isubc_sw=',isubc_sw, &
& ' isubc_lw=',isubc_lw,' icliq_sw=',icliq_sw, &
Expand Down
16 changes: 8 additions & 8 deletions physics/GFS_suite_interstitial.F90
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ subroutine GFS_suite_interstitial_2_run (im, levs, lssav, ldiag3d, lsidea, flag_

! --- ... sfc lw fluxes used by atmospheric model are saved for output
if (.not. use_LW_jacobian) then
if (frac_grid) then
do i=1,im
if (frac_grid) then
do i=1,im
tem = (one - frland(i)) * cice(i) ! tem = ice fraction wrt whole cell
if (flag_cice(i)) then
adjsfculw(i) = adjsfculw_lnd(i) * frland(i) &
Expand All @@ -242,9 +242,9 @@ subroutine GFS_suite_interstitial_2_run (im, levs, lssav, ldiag3d, lsidea, flag_
+ adjsfculw_ice(i) * tem &
+ adjsfculw_wat(i) * (one - frland(i) - tem)
endif
enddo
else
do i=1,im
enddo
else
do i=1,im
if (dry(i)) then ! all land
adjsfculw(i) = adjsfculw_lnd(i)
elseif (icy(i)) then ! ice (and water)
Expand All @@ -265,15 +265,15 @@ subroutine GFS_suite_interstitial_2_run (im, levs, lssav, ldiag3d, lsidea, flag_
else ! all water
adjsfculw(i) = adjsfculw_wat(i)
endif
enddo
endif
enddo
endif
endif

do i=1,im
dlwsfc(i) = dlwsfc(i) + adjsfcdlw(i)*dtf
ulwsfc(i) = ulwsfc(i) + adjsfculw(i)*dtf
psmean(i) = psmean(i) + pgr(i)*dtf ! mean surface pressure
end do
enddo

if (ldiag3d) then
if (lsidea) then
Expand Down
Loading