Ignore:
Timestamp:
Apr 15, 2005, 2:36:17 PM (19 years ago)
Author:
lmdzadmin
Message:

Rajout convection Kerry Emanuel pour traceurs- MAF+JYG

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/trunk/libf/phylmd/cv_driver.F

    r559 r619  
    55     &                   t1,q1,qs1,u1,v1,tra1,
    66     &                   p1,ph1,iflag1,ft1,fq1,fu1,fv1,ftra1,
    7      &                   precip1,
     7     &                   precip1,VPrecip1,
    88     &                   cbmf1,sig1,w01,
    9      &                   delt,Ma1,upwd1,dnwd1,dnwd01,qcondc1,wd1,cape1)
     9     &                   icb1,inb1,
     10     &                   delt,Ma1,upwd1,dnwd1,dnwd01,qcondc1,wd1,cape1,
     11     &                   da1,phi1,mp1)
    1012C
    1113      implicit none
     
    3739C      ftra1         Real           Output       tracor tend
    3840C      precip1       Real           Output       precipitation
     41C      VPrecip1      Real           Output       vertical profile of precipitations
    3942C      cbmf1         Real           Output       cloud base mass flux
    4043C      sig1          Real           In/Out       section adiabatic updraft
     
    8487      real precip1(len)
    8588      real cbmf1(len)
     89      real VPrecip1(len,nd+1)
    8690      real Ma1(len,nd)
    8791      real upwd1(len,nd)
     
    9397      real cape1(len)     
    9498
     99      real da1(len,nd),phi1(len,nd,nd),mp1(len,nd)
     100      real da(len,nd),phi(len,nd,nd),mp(len,nd)
    95101      real tra1(len,nd,ntra)
    96102      real ftra1(len,nd,ntra)
     
    185191!  precip: Scalar convective precipitation rate (mm/day).
    186192!
     193!  VPrecip: Vertical profile of convective precipitation (kg/m2/s).
     194!
    187195!  wd:   A convective downdraft velocity scale. For use in surface
    188196!        flux parameterizations. See convect.ps file for details.
     
    213221      integer nk1(klon)
    214222      integer icb1(klon)
     223      integer inb1(klon)
    215224      integer icbs1(klon)
    216225
     
    267276      real ments(nloc,klev,klev), qents(nloc,klev,klev)
    268277      real sij(nloc,klev,klev), elij(nloc,klev,klev)
    269       real mp(nloc,klev), qp(nloc,klev), up(nloc,klev), vp(nloc,klev)
     278      real qp(nloc,klev), up(nloc,klev), vp(nloc,klev)
    270279      real wt(nloc,klev), water(nloc,klev), evap(nloc,klev)
    271280      real b(nloc,klev), ft(nloc,klev), fq(nloc,klev)
     
    275284      real tps(nloc,klev), qprime(nloc), tprime(nloc)
    276285      real precip(nloc)
     286      real VPrecip(nloc,klev+1)
    277287      real tra(nloc,klev,ntra), trap(nloc,klev,ntra)
    278288      real ftra(nloc,klev,ntra), traent(nloc,klev,klev,ntra)
     
    324334         clw(i,k)=0.0   
    325335         gz1(i,k) = 0.
    326 
     336         VPrecip1(i,k) = 0.
    327337         Ma1(i,k)=0.0
    328338         upwd1(i,k)=0.0
     
    346356        wd1(i)=0.0
    347357        cape1(i)=0.0
     358        VPrecip1(i,nd+1)=0.0
    348359 60   continue
    349360
     
    552563     :                     ,ment,qent,uent,vent,nent,elij,traent,sig
    553564     :                     ,tv,tvp
    554      o                     ,iflag,precip,ft,fq,fu,fv,ftra
     565     o                     ,iflag,precip,VPrecip,ft,fq,fu,fv,ftra
    555566     o                     ,upwd,dnwd,dnwd0,ma,mike,tls,tps,qcondc,wd)
    556567      endif
     
    568579
    569580!^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     581! --- passive tracers
     582!^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     583
     584      if (iflag_con.eq.3) then
     585       CALL cv3_tracer(nloc,len,ncum,nd,nd,
     586     :                  ment,sij,da,phi)
     587      endif
     588
     589!^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    570590! --- UNCOMPRESS THE FIELDS
    571591!^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    572 
    573 
     592c set iflag1 =42 for non convective points
     593      do  i=1,len
     594        iflag1(i)=42
     595      end do
     596c
    574597      if (iflag_con.eq.3) then
    575598       CALL cv3_uncompress(nloc,len,ncum,nd,ntra,idcum
    576599     :          ,iflag
    577      :          ,precip,sig,w0
     600     :          ,precip,VPrecip,sig,w0
    578601     :          ,ft,fq,fu,fv,ftra
     602     :          ,inb
    579603     :          ,Ma,upwd,dnwd,dnwd0,qcondc,wd,cape
     604     :          ,da,phi,mp
    580605     o          ,iflag1
    581      o          ,precip1,sig1,w01
     606     o          ,precip1,VPrecip1,sig1,w01
    582607     o          ,ft1,fq1,fu1,fv1,ftra1
    583      o          ,Ma1,upwd1,dnwd1,dnwd01,qcondc1,wd1,cape1 )
     608     o          ,inb1
     609     o          ,Ma1,upwd1,dnwd1,dnwd01,qcondc1,wd1,cape1
     610     o          ,da1,phi1,mp1)
    584611      endif
    585612
     
    611638c -- si .TRUE., on rend la gravite plus explicite et eventuellement
    612639c differente de 10.0 dans convect3:
    613       cvflag_grav = .FALSE.
     640      cvflag_grav = .TRUE.
    614641
    615642      return
     
    654681c ori      t0  = RTT
    655682       t0  = 273.15 ! convect3 (RTT=273.16)
    656        grav= 10.    ! implicitely or explicitely used in convect3
     683c maf       grav= 10.    ! implicitely or explicitely used in convect3
     684       grav= g    ! implicitely or explicitely used in convect3
    657685      endif
    658686
Note: See TracChangeset for help on using the changeset viewer.