Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
30 changes: 20 additions & 10 deletions physics/cu_gf_deep.F90
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ subroutine cu_gf_deep_run( &
integer :: turn,pmin_lev(its:ite),start_level(its:ite),ktopkeep(its:ite)
real(kind=kind_phys), dimension (its:ite,kts:kte) :: dtempdz
integer, dimension (its:ite,kts:kte) :: k_inv_layers
real(kind=kind_phys) :: c0 ! HCB

! rainevap from sas
real(kind=kind_phys) zuh2(40)
Expand Down Expand Up @@ -383,6 +384,14 @@ subroutine cu_gf_deep_run( &
! sas
! lambau=0.
! pgcon=-.55
!
!---------------------------------------------------- ! HCB
! Set cloud water to rain water conversion rate (c0)
c0=0.004
if(imid.eq.1)then
c0=0.002
endif

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ztexec(:) = 0.
zqexec(:) = 0.
Expand Down Expand Up @@ -937,14 +946,14 @@ subroutine cu_gf_deep_run( &
if(imid.eq.1)then
call cup_up_moisture('mid',ierr,zo_cup,qco,qrco,pwo,pwavo, &
p_cup,kbcon,ktop,dbyo,clw_all,xland1, &
qo,gammao_cup,zuo,qeso_cup,k22,qo_cup, &
qo,gammao_cup,zuo,qeso_cup,k22,qo_cup,c0, &
zqexec,ccn,rho,c1d,tn_cup,up_massentr,up_massdetr,psum,psumh, &
1,itf,ktf, &
its,ite, kts,kte)
else
call cup_up_moisture('deep',ierr,zo_cup,qco,qrco,pwo,pwavo, &
p_cup,kbcon,ktop,dbyo,clw_all,xland1, &
qo,gammao_cup,zuo,qeso_cup,k22,qo_cup, &
qo,gammao_cup,zuo,qeso_cup,k22,qo_cup,c0, &
zqexec,ccn,rho,c1d,tn_cup,up_massentr,up_massdetr,psum,psumh, &
1,itf,ktf, &
its,ite, kts,kte)
Expand Down Expand Up @@ -1266,14 +1275,14 @@ subroutine cu_gf_deep_run( &
! if(imid.eq.1)then
! call cup_up_moisture('mid',ierr,zo_cup,qco,qrco,pwo,pwavo, &
! p_cup,kbcon,ktop,dbyo,clw_all,xland1, &
! qo,gammao_cup,zuo,qeso_cup,k22,qo_cup, &
! qo,gammao_cup,zuo,qeso_cup,k22,qo_cup,c0, &
! zqexec,ccn,rho,c1d,tn_cup,up_massentr,up_massdetr,psum,psumh, &
! 1,itf,ktf, &
! its,ite, kts,kte)
! else
! call cup_up_moisture('deep',ierr,zo_cup,qco,qrco,pwo,pwavo, &
! p_cup,kbcon,ktop,dbyo,clw_all,xland1, &
! qo,gammao_cup,zuo,qeso_cup,k22,qo_cup, &
! qo,gammao_cup,zuo,qeso_cup,k22,qo_cup,c0, &
! zqexec,ccn,rho,c1d,tn_cup,up_massentr,up_massdetr,psum,psumh, &
! 1,itf,ktf, &
! its,ite, kts,kte)
Expand Down Expand Up @@ -3865,7 +3874,7 @@ end subroutine cup_output_ens_3d
!>\ingroup cu_gf_deep_group
subroutine cup_up_moisture(name,ierr,z_cup,qc,qrc,pw,pwav, &
p_cup,kbcon,ktop,dby,clw_all,xland1, &
q,gamma_cup,zu,qes_cup,k22,qe_cup, &
q,gamma_cup,zu,qes_cup,k22,qe_cup,c0, &
zqexec,ccn,rho,c1d,t, &
up_massentr,up_massdetr,psum,psumh, &
itest,itf,ktf, &
Expand Down Expand Up @@ -3904,6 +3913,8 @@ subroutine cup_up_moisture(name,ierr,z_cup,qc,qrc,pw,pwav, &
integer, dimension (its:ite) &
,intent (in ) :: &
kbcon,ktop,k22,xland1
real(kind=kind_phys), intent (in ) :: & ! HCB
c0
!
! input and output
!
Expand Down Expand Up @@ -3944,15 +3955,14 @@ subroutine cup_up_moisture(name,ierr,z_cup,qc,qrc,pw,pwav, &
integer :: start_level(its:ite)
real(kind=kind_phys) :: &
prop_ave,qrcb_h,bdsp,dp,rhoc,qrch,qaver,clwdet, &
c0,dz,berryc0,q1,berryc
dz,berryc0,q1,berryc
real(kind=kind_phys) :: &
denom, c0t
real(kind=kind_phys), dimension (kts:kte) :: &
prop_b
!
prop_b(kts:kte)=0
iall=0
c0=.002
clwdet=50.
bdsp=bdispm
!
Expand Down Expand Up @@ -3999,7 +4009,7 @@ subroutine cup_up_moisture(name,ierr,z_cup,qc,qrc,pw,pwav, &
enddo

do 100 i=its,itf
c0=.004
!c0=.004 HCB tuning
if(ierr(i).eq.0)then

! below lfc, but maybe above lcl
Expand Down Expand Up @@ -4031,8 +4041,8 @@ subroutine cup_up_moisture(name,ierr,z_cup,qc,qrc,pw,pwav, &
!now do the rest
!
do k=kbcon(i)+1,ktop(i)
c0=.004
if(t(i,k).lt.270.)c0=.002
!c0=.004 HCB tuning
!if(t(i,k).lt.270.)c0=.002 HCB tuning
if(t(i,k) > 273.16) then
c0t = c0
else
Expand Down
4 changes: 2 additions & 2 deletions physics/cu_gf_driver.F90
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@ subroutine cu_gf_driver_run(ntracer,garea,im,km,dt,cactiv, &
real(kind=kind_phys), dimension (im) :: hfx,qfx
real(kind=kind_phys) tem,tem1,tf,tcr,tcrf

parameter (tf=243.16, tcr=270.16, tcrf=1.0/(tcr-tf))
!parameter (tf=243.16, tcr=270.16, tcrf=1.0/(tcr-tf)) ! FV3 original
!parameter (tf=263.16, tcr=273.16, tcrf=1.0/(tcr-tf))
!parameter (tf=233.16, tcr=263.16, tcrf=1.0/(tcr-tf))
!parameter (tf=258.16, tcr=273.16, tcrf=1.0/(tcr-tf)) ! as fim
parameter (tf=258.16, tcr=273.16, tcrf=1.0/(tcr-tf)) ! as fim, HCB tuning
! initialize ccpp error handling variables
errmsg = ''
errflg = 0
Expand Down