Changeset 341f4b7 in flexpart.git for src/verttransform.f90


Ignore:
Timestamp:
Apr 20, 2016, 1:39:51 PM (8 years ago)
Author:
Espen Sollum ATMOS <eso@…>
Branches:
master, 10.4.1_pesei, GFS_025, bugfixes+enhancements, dev, release-10, release-10.4.1, scaling-bug, univie
Children:
61df8d9
Parents:
32b49c3
Message:

SPECIES files converted to namelist format. Fixed-format SPCIES files renamed with .oldformat extension. Added 2 wet depo parameters to old-format SPECIES. Renamed internal variables and parameters used for wet deposition. incloud_ratio increased to 2.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/verttransform.f90

    rdb712a8 r341f4b7  
    8282
    8383  integer :: ix,jy,kz,iz,n,kmin,ix1,jy1,ixp,jyp,ixm,jym,kz_inv
    84   real :: f_qvsat,pressure,rh,lsp,convp,prec
     84  real :: f_qvsat,pressure,rh,lsp,convp,cloudh_min,prec
    8585  real :: ew,dz1,dz2,dz
    8686  real :: xlon,ylat,xlonr,dzdx,dzdy
     
    586586    write(*,*) 'Global ECMWF fields: using cloud water'
    587587    clw(:,:,:,n)=0.0
    588     icloud_stats(:,:,:,n)=0.0
     588!    icloud_stats(:,:,:,n)=0.0
     589    ctwc(:,:,n)=0.0
    589590    clouds(:,:,:,n)=0
    590591! If water/ice are read separately into clwc and ciwc, store sum in clwc
     
    604605            clw(ix,jy,kz,n)=(clwc(ix,jy,kz,n)*rho(ix,jy,kz,n))*(height(kz+1)-height(kz))
    605606            tot_cloud_h=tot_cloud_h+(height(kz+1)-height(kz))
    606             icloud_stats(ix,jy,4,n)= icloud_stats(ix,jy,4,n)+clw(ix,jy,kz,n)          ! Column cloud water [m3/m3]
    607             icloud_stats(ix,jy,3,n)= min(height(kz+1),height(kz))                     ! Cloud BOT height stats      [m]
     607           
     608!            icloud_stats(ix,jy,4,n)= icloud_stats(ix,jy,4,n)+clw(ix,jy,kz,n)          ! Column cloud water [m3/m3]
     609            ctwc(ix,jy,n) = ctwc(ix,jy,n)+clw(ix,jy,kz,n)
     610!            icloud_stats(ix,jy,3,n)= min(height(kz+1),height(kz))                     ! Cloud BOT height stats      [m]
     611            cloudh_min=min(height(kz+1),height(kz))
    608612!ZHG 2015 extra for testing
    609613!            clh(ix,jy,kz,n)=height(kz+1)-height(kz)
    610             icloud_stats(ix,jy,1,n)=icloud_stats(ix,jy,1,n)+(height(kz+1)-height(kz)) ! Cloud total vertical extent [m]
    611             icloud_stats(ix,jy,2,n)= max(icloud_stats(ix,jy,2,n),height(kz))          ! Cloud TOP height            [m]
     614!            icloud_stats(ix,jy,1,n)=icloud_stats(ix,jy,1,n)+(height(kz+1)-height(kz)) ! Cloud total vertical extent [m]
     615!            icloud_stats(ix,jy,2,n)= max(icloud_stats(ix,jy,2,n),height(kz))          ! Cloud TOP height            [m]
    612616!ZHG
    613617          endif
     
    626630                clouds(ix,jy,kz,n)=2                             ! convp in-cloud
    627631              endif                                              ! convective or large scale
    628             elseif((clw(ix,jy,kz,n).le.0) .and. (icloud_stats(ix,jy,3,n).ge.height(kz)) ) then ! is below cloud
     632            elseif((clw(ix,jy,kz,n).le.0) .and. (cloudh_min.ge.height(kz))) then ! is below cloud
    629633              if (lsp.ge.convp) then
    630634                clouds(ix,jy,kz,n)=5                             ! lsp dominated washout
     
    643647
    644648! eso: copy the relevant data to clw4 to reduce amount of communicated data for MPI
    645     clw4(:,:,n) = icloud_stats(:,:,4,n)
     649!    ctwc(:,:,n) = icloud_stats(:,:,4,n)
    646650
    647651!**************************************************************************
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG