Ignore:
Timestamp:
May 12, 2011, 3:32:22 PM (13 years ago)
Author:
idelkadi
Message:

Modifications des routines de convection :

  • correction de bug : le champ sigd n'etait pas decompresse avant d'etre sorti de la convection.
  • sortir de nouveaux champs de convection (plcl, plfc, wb)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/cva_driver.F

    r1517 r1518  
    1111     &                   sig1feed1,sig2feed1,wght1,
    1212     o                   iflag1,ft1,fq1,fu1,fv1,ftra1,
    13      &                   precip1,kbas1,ktop1,cbmf1,
     13     &                   precip1,kbas1,ktop1,
     14     &                   cbmf1,plcl1,plfc1,wbeff1,
    1415     &                   sig1,w01,                  !input/output
    15      &                   ptop21,sigd,
     16     &                   ptop21,sigd1,
    1617     &                   Ma1,mip1,Vprecip1,upwd1,dnwd1,dnwd01,
    1718     &                   qcondc1,wd1,
     
    150151      integer ktop1(len)
    151152      real cbmf1(len)
    152 !      real cbmflast(len)
     153      real plcl1(klon)
     154      real plfc1(klon)
     155      real wbeff1(klon)
    153156      real sig1(len,klev)      !input/output
    154157      real w01(len,klev)       !input/output
    155158      real ptop21(len)
     159      real sigd1(len)
    156160      real Ma1(len,nd)
    157161      real mip1(len,nd)
     
    320324c$OMP THREADPRIVATE(debut)
    321325
    322       real plcl1(klon)
    323326      real tnk1(klon)
    324327      real thnk1(klon)
     
    365368      integer inb(nloc), inbis(nloc)
    366369
    367       real cbmf(nloc),plcl(nloc)
     370      real cbmf(nloc),plcl(nloc),plfc(nloc),wbeff(nloc)
    368371      real t(nloc,klev),q(nloc,klev),qs(nloc,klev)
    369372      real t_wake(nloc,klev),q_wake(nloc,klev),qs_wake(nloc,klev)
     
    495498      call  zilch(cbmf1   ,nword1)
    496499      call  zilch(ptop21  ,nword1)
     500      sigd1=0.
    497501      call  zilch(Ma1     ,nword2)
    498502      call  zilch(mip1    ,nword2)
     
    794798     o                       ,sig,w0,ptop2,cape,cin,m,iflag,coef_clos
    795799     :                       ,Plim1,Plim2,asupmax,supmax0
    796      :                       ,asupmaxmin,cbmf)
     800     :                       ,asupmaxmin,cbmf,plfc,wbeff)
     801       
     802        print *,'cv3p1_closure-> plfc,wbeff ', plfc(1),wbeff(1)
    797803       ENDIF
    798804      endif   ! iflag_con.eq.3
     
    863869      if (debut) THEN
    864870       print *,'cv_unsat-> '
    865        debut=.FALSE.
    866871      endif !(debut) THEN
    867872!
     
    889894     :                    ,tls,tps,qcondc,wd
    890895     :                    ,ftd,fqd)
    891 !      print *,' cv3_yield -> fqd(1) = ',fqd(1,1)
    892       endif
    893 
     896      endif
     897c
     898      if (debut) THEN
     899       print *,' cv3_yield -> fqd(1) = ',fqd(1,1)
     900      endif !(debut) THEN
     901c
    894902      if (iflag_con.eq.4) then
    895903       CALL cv_yield(nloc,ncum,nd,nk,icb,inb,delt
     
    912920       CALL cv3a_uncompress(nloc,len,ncum,nd,ntra,idcum
    913921     :          ,iflag,icb,inb
    914      :          ,precip,cbmf,sig,w0,ptop2
     922     :          ,precip,cbmf,plcl,plfc,wbeff,sig,w0,ptop2
    915923     :          ,ft,fq,fu,fv,ftra
    916      :          ,Ma,mip,Vprecip,upwd,dnwd,dnwd0
     924     :          ,sigd,Ma,mip,Vprecip,upwd,dnwd,dnwd0
    917925     ;          ,qcondc,wd,cape,cin
    918926     :          ,tvp
     
    921929     :          ,asupmaxmin
    922930     o          ,iflag1,kbas1,ktop1
    923      o          ,precip1,cbmf1,sig1,w01,ptop21
     931     o          ,precip1,cbmf1,plcl1,plfc1,wbeff1,sig1,w01,ptop21
    924932     o          ,ft1,fq1,fu1,fv1,ftra1
    925      o          ,Ma1,mip1,Vprecip1,upwd1,dnwd1,dnwd01
     933     o          ,sigd1,Ma1,mip1,Vprecip1,upwd1,dnwd1,dnwd01
    926934     o          ,qcondc1,wd1,cape1,cin1
    927935     o          ,tvp1
     
    944952
    945953      ENDIF ! ncum>0
     954c
     955      if (debut) THEN
     956       print *,' cv_compress -> '
     957       debut=.FALSE.
     958      endif !(debut) THEN
     959c
    946960
    9479619999  continue
Note: See TracChangeset for help on using the changeset viewer.