Changeset 341f4b7 in flexpart.git for src/verttransform.f90
- Timestamp:
- Apr 20, 2016, 1:39:51 PM (8 years ago)
- Branches:
- master, 10.4.1_pesei, GFS_025, bugfixes+enhancements, dev, release-10, release-10.4.1, scaling-bug, univie
- Children:
- 61df8d9
- Parents:
- 32b49c3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/verttransform.f90
rdb712a8 r341f4b7 82 82 83 83 integer :: ix,jy,kz,iz,n,kmin,ix1,jy1,ixp,jyp,ixm,jym,kz_inv 84 real :: f_qvsat,pressure,rh,lsp,convp, prec84 real :: f_qvsat,pressure,rh,lsp,convp,cloudh_min,prec 85 85 real :: ew,dz1,dz2,dz 86 86 real :: xlon,ylat,xlonr,dzdx,dzdy … … 586 586 write(*,*) 'Global ECMWF fields: using cloud water' 587 587 clw(:,:,:,n)=0.0 588 icloud_stats(:,:,:,n)=0.0 588 ! icloud_stats(:,:,:,n)=0.0 589 ctwc(:,:,n)=0.0 589 590 clouds(:,:,:,n)=0 590 591 ! If water/ice are read separately into clwc and ciwc, store sum in clwc … … 604 605 clw(ix,jy,kz,n)=(clwc(ix,jy,kz,n)*rho(ix,jy,kz,n))*(height(kz+1)-height(kz)) 605 606 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)) 608 612 !ZHG 2015 extra for testing 609 613 ! 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] 612 616 !ZHG 613 617 endif … … 626 630 clouds(ix,jy,kz,n)=2 ! convp in-cloud 627 631 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 cloud632 elseif((clw(ix,jy,kz,n).le.0) .and. (cloudh_min.ge.height(kz))) then ! is below cloud 629 633 if (lsp.ge.convp) then 630 634 clouds(ix,jy,kz,n)=5 ! lsp dominated washout … … 643 647 644 648 ! 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) 646 650 647 651 !**************************************************************************
Note: See TracChangeset
for help on using the changeset viewer.