Ignore:
Timestamp:
Mar 11, 2011, 10:44:05 AM (13 years ago)
Author:
Laurent Fairhead
Message:

Modified closure for the new physics package, new values for the iflag_coupl parameter
FH


Fermeture modifiée pour la nouvelle physique, nouvelles valeurs définies pour
le paramètre iflag_coupl
FH

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/thermcell_main.F90

    r1494 r1496  
    88     &                  ,fm0,entr0,detr0,zqta,zqla,lmax  &
    99     &                  ,ratqscth,ratqsdiff,zqsatth  &
    10      &                  ,r_aspect,l_mix,tau_thermals,iflag_thermals_ed &
    1110     &                  ,Ale_bl,Alp_bl,lalim_conv,wght_th &
    1211     &                  ,zmax0, f0,zw2,fraca,ztv &
     
    4746#include "FCTTRE.h"
    4847#include "iniprint.h"
     48#include "thermcell.h"
    4949
    5050!   arguments:
     
    5454      INTEGER itap
    5555
    56       INTEGER ngrid,nlay,w2di
    57       real tau_thermals
    58       integer iflag_thermals_ed
    59       real ptimestep,l_mix,r_aspect
     56      INTEGER ngrid,nlay
     57      real ptimestep
    6058      REAL pt(ngrid,nlay),pdtadj(ngrid,nlay)
    6159      REAL pu(ngrid,nlay),pduadj(ngrid,nlay)
     
    162160      real Ale_bl(klon)
    163161      real Alp_bl(klon)
    164       real alp_int(klon)
     162      real alp_int(klon),dp_int(klon),zdp
    165163      real ale_int(klon)
    166164      integer n_int(klon)
     
    474472
    475473! Appel avec la version seche
    476       CALL thermcell_closure(ngrid,nlay,r_aspect,ptimestep,rho,  &
     474      CALL thermcell_closure(ngrid,nlay,r_aspect_thermals,ptimestep,rho,  &
    477475     &   zlev,lalim,alim_star_clos,f_star,zmax_sec,wmax_sec,f,lev_out)
    478476
     
    480478! Appel avec les zmax et wmax tenant compte de la condensation
    481479! Semble moins bien marcher
    482 !     CALL thermcell_closure(ngrid,nlay,r_aspect,ptimestep,rho,  &
     480!     CALL thermcell_closure(ngrid,nlay,r_aspect_thermals,ptimestep,rho,  &
    483481!    &   zlev,lalim,alim_star,f_star,zmax,wmax,f,lev_out)
    484482!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     
    702700      enddo
    703701
    704 !     print*,'AAAAAAA ',Alp_bl,Ale_bl,lmix
    705 
    706 
    707 ! TEST. IL FAUT REECRIRE LES ALE et ALP
    708 !     Ale_bl(:)=0.5*wmax(:)*wmax(:)
    709 !     Alp_bl(:)=0.1*wmax(:)*wmax(:)*wmax(:)
    710 
    711702!test:calcul de la ponderation des couches pour KE
    712703!initialisations
    713 !      print*,'ponderation'
    714704
    715705      fm_tot(:)=0.
     
    743733      endif
    744734      enddo
     735
     736!------------------------------------------------------------------------
     737! Modif CR/FH 20110310 : Alp integree sur la verticale.
     738! Integrale verticale de ALP.
     739! wth3 etant aux niveaux inter-couches, on utilise d play comme masse des
     740! couches
     741!------------------------------------------------------------------------
     742
     743      alp_int(:)=0.
     744      dp_int(:)=0.
     745      do l=2,nlay
     746        do ig=1,ngrid
     747           if(l.LE.lmax(ig)) THEN
     748           zdp=pplay(ig,l-1)-pplay(ig,l)
     749           alp_int(ig)=alp_int(ig)+0.5*rhobarz(ig,l)*wth3(ig,l)*zdp
     750           dp_int(ig)=dp_int(ig)+zdp
     751           endif
     752        enddo
     753      enddo
     754
     755      if (iflag_coupl==3 .or. iflag_coupl==4) then
     756      do ig=1,ngrid
     757!valeur integree de alp_bl * 0.5:
     758        if (dp_int(ig)>0.) then
     759        Alp_bl(ig)=alp_int(ig)/dp_int(ig)
     760        endif
     761      enddo!
     762      endif
     763
     764
     765! Facteur multiplicatif sur Alp_bl
     766      Alp_bl(:)=alp_bl_k*Alp_bl(:)
     767
     768!------------------------------------------------------------------------
    745769
    746770
Note: See TracChangeset for help on using the changeset viewer.