Changes in src/get_wetscav.f90 [c7e771d:79e0349] in flexpart.git


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/get_wetscav.f90

    rc7e771d r79e0349  
    7272  integer(kind=1) :: clouds_v
    7373  integer :: ks, kp
    74   integer :: inc_count, blc_count
     74  integer(selected_int_kind(16)), dimension(nspec) :: blc_count, inc_count
     75
    7576!  integer :: n1,n2, icbot,ictop, indcloud !TEST
    7677  real :: S_i, act_temp, cl, cle ! in cloud scavenging
     
    237238        if ((dquer(ks).le.0.).and.(weta_gas(ks).gt.0..or.wetb_gas(ks).gt.0.)) then
    238239          !        if (weta(ks).gt.0. .or. wetb(ks).gt.0.) then
    239           blc_count=blc_count+1
     240          blc_count(ks)=blc_count(ks)+1
    240241          wetscav=weta_gas(ks)*prec(1)**wetb_gas(ks)
    241242
     
    243244!*********************************************************************************
    244245        else if ((dquer(ks).gt.0.).and.(crain_aero(ks).gt.0..or.csnow_aero(ks).gt.0.)) then
    245           blc_count=blc_count+1
     246          blc_count(ks)=blc_count(ks)+1
    246247
    247248!NIK 17.02.2015
     
    283284! given in species file, or if gas and positive Henry's constant
    284285        if ((ccn_aero(ks).gt.0. .or. in_aero(ks).gt.0.).or.(henry(ks).gt.0.and.dquer(ks).le.0)) then
    285           inc_count=inc_count+1
     286          inc_count(ks)=inc_count(ks)+1
    286287!          write(*,*) 'Incloud: ',inc_count
    287288! if negative coefficients (turned off) set to zero for use in equation
     
    297298          else                                  !parameterize cloudwater m2/m3
    298299!ZHG updated parameterization of cloud water to better reproduce the values coming from ECMWF
    299             cl=1.6E-6*prec(1)**0.36
     300! sec test
     301!           cl=1E6*1E-7*prec(1)**0.3 !Sec GFS new
     302            cl=1E6*2E-7*prec(1)**0.36 !Sec ECMWF new
     303!           cl=2E-7*prec(1)**0.36 !Andreas
     304!           cl=1.6E-6*prec(1)**0.36 !Henrik
    300305          endif
    301306
     
    317322          if (dquer(ks).gt.0.) then
    318323            S_i= frac_act/cl
     324!           write(*,*) 'Si: ',S_i
    319325
    320326! GAS
     
    333339            wetscav=incloud_ratio*S_i*(prec(1)/3.6E6)
    334340          else
    335             wetscav=incloud_ratio*S_i*(prec(1)/3.6E6)/clouds_h
     341!SEC wetscav fix
     342             wetscav=incloud_ratio*S_i*(prec(1)/3.6E6)
     343!            wetscav=incloud_ratio*S_i*(prec(1)/3.6E6)/clouds_h
    336344          endif
    337345        endif ! positive in-cloud scavenging parameters given in Species file
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG