Ignore:
Timestamp:
Aug 17, 2006, 5:41:51 PM (18 years ago)
Author:
Laurent Fairhead
Message:

Inclusion des modifs de Y. Meurdesoif pour la version V3
LF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/branches/V3_test/libf/phylmd/conflx.F

    r703 r704  
    88     s                   kcbot, kctop, kdtop, pmflxr, pmflxs)
    99c
     10      USE dimphy
    1011      IMPLICIT none
    1112c======================================================================
     
    1718c         et lessivage des traceurs passifs.
    1819c======================================================================
    19 #include "dimensions.h"
    20 #include "dimphy.h"
     20cym#include "dimensions.h"
     21cym#include "dimphy.h"
    2122#include "YOMCST.h"
    2223#include "YOETHF.h"
     
    214215     .                   pmfu, pmfd, pen_u, pde_u, pen_d, pde_d,
    215216     .                   dt_con, dq_con, pmflxr, pmflxs)
     217      USE dimphy
    216218      IMPLICIT none
    217219C     ------------------------------------------------------------------
    218 #include "dimensions.h"
    219 #include "dimphy.h"
     220cym#include "dimensions.h"
     221cym#include "dimphy.h"
    220222#include "YOMCST.h"
    221223#include "YOETHF.h"
     
    265267      SAVE firstcal
    266268      DATA firstcal / .TRUE. /
     269c$OMP THREADPRIVATE(firstcal)
    267270C---------------------------------------------------------------------
    268271      IF (firstcal) THEN
     
    504507     .           pdmfdp, pmfu, pmfus, pmfuq, pdmfup, pdpmel, plu, plude,
    505508     .           klab,pen_u, pde_u, pen_d, pde_d)
     509      USE dimphy
    506510      IMPLICIT none
    507511C----------------------------------------------------------------------
     
    510514C AND INITIALIZES VALUES FOR UPDRAFTS
    511515C----------------------------------------------------------------------
    512 #include "dimensions.h"
    513 #include "dimphy.h"
     516cym#include "dimensions.h"
     517cym#include "dimphy.h"
    514518#include "YOMCST.h"
    515519#include "YOETHF.h"
     
    629633      SUBROUTINE flxbase(ptenh, pqenh, pgeoh, paph,
    630634     *     ptu, pqu, plu, ldcum, kcbot, klab)
     635      USE dimphy
    631636      IMPLICIT none
    632637C----------------------------------------------------------------------
     
    641646C (NON ENTRAINING PLUME,I.E.CONSTANT MASSFLUX)
    642647C----------------------------------------------------------------------
    643 #include "dimensions.h"
    644 #include "dimphy.h"
     648cym#include "dimensions.h"
     649cym#include "dimphy.h"
    645650#include "YOMCST.h"
    646651#include "YOETHF.h"
     
    714719     .     pmful, plude, pdmfup, kcbot, kctop, kctop0, kcum,
    715720     .     pen_u, pde_u)
     721      USE dimphy
    716722      IMPLICIT none
    717723C----------------------------------------------------------------------
     
    719725C FOR CUMULUS PARAMETERIZATION
    720726C----------------------------------------------------------------------
    721 #include "dimensions.h"
    722 #include "dimphy.h"
     727cym#include "dimensions.h"
     728cym#include "dimphy.h"
    723729#include "YOMCST.h"
    724730#include "YOETHF.h"
     
    10181024     .  ,  pten, prfl, psfl, pdpmel, ktopm2
    10191025     .  ,  pmflxr, pmflxs)
     1026      USE dimphy
    10201027      IMPLICIT none
    10211028C----------------------------------------------------------------------
     
    10231030C FLUXES IN THE CLOUD LAYER AND IN THE SUBCLOUD LAYER
    10241031C----------------------------------------------------------------------
    1025 #include "dimensions.h"
    1026 #include "dimphy.h"
     1032cym#include "dimensions.h"
     1033cym#include "dimphy.h"
    10271034#include "YOMCST.h"
    10281035#include "YOETHF.h"
    10291036#include "YOECUMF.h"
    10301037C
    1031       REAL cevapcu(klev)
     1038      REAL cevapcu(klon,klev)
    10321039C     -----------------------------------------------------------------
    10331040      REAL pqen(klon,klev), pqenh(klon,klev), pqsen(klon,klev)
     
    10641071c
    10651072      DO 101 k=1,klev
    1066       CEVAPCU(k)=1.93E-6*261.*SQRT(1.E3/(38.3*0.293)
    1067      1 *SQRT(0.5*(paph(1,k)+paph(1,k+1))/paph(1,klev+1)) ) * 0.5/RG
     1073        DO i=1,klon
     1074      CEVAPCU(i,k)=1.93E-6*261.*SQRT(1.E3/(38.3*0.293)
     1075     1 *SQRT(0.5*(paph(i,k)+paph(i,k+1))/paph(i,klev+1)) ) * 0.5/RG
     1076        ENDDO
    10681077 101  CONTINUE
    10691078c
     
    12131222         IF (zrfl.GT.1.0E-20) THEN
    12141223            zrnew=(MAX(0.,SQRT(zrfl/zcucov)-
    1215      .            CEVAPCU(k)*(paph(i,k+1)-paph(i,k))*
     1224     .            CEVAPCU(i,k)*(paph(i,k+1)-paph(i,k))*
    12161225     .            MAX(0.,pqsen(i,k)-pqen(i,k))))**2*zcucov
    12171226            zrmin=zrfl-zcucov*MAX(0.,0.8*pqsen(i,k)-pqen(i,k))
     
    12621271     .  ,  pmfus, pmfds, pmfuq, pmfdq, pmful, pdmfup, pdmfdp
    12631272     .  ,  pdpmel, dt_con, dq_con)
     1273      USE dimphy
    12641274      IMPLICIT none
    12651275c----------------------------------------------------------------------
    12661276c calculer les tendances T et Q
    12671277c----------------------------------------------------------------------
    1268 #include "dimensions.h"
    1269 #include "dimphy.h"
     1278cym#include "dimensions.h"
     1279cym#include "dimphy.h"
    12701280#include "YOMCST.h"
    12711281#include "YOETHF.h"
     
    13331343     .     ldcum, kcbot, kctop, pmfub, prfl, ptd, pqd,
    13341344     .     pmfd, pmfds, pmfdq, pdmfdp, kdtop, lddraf)
     1345      USE dimphy
    13351346      IMPLICIT none
    13361347C
     
    13501361C MOIST ENVIRONMENTAL AIR AND CLOUD AIR.
    13511362C----------------------------------------------------------------------
    1352 #include "dimensions.h"
    1353 #include "dimphy.h"
     1363cym#include "dimensions.h"
     1364cym#include "dimphy.h"
    13541365#include "YOMCST.h"
    13551366#include "YOETHF.h"
     
    14441455     .           ptd, pqd, pmfd, pmfds, pmfdq, pdmfdp,
    14451456     .           lddraf, pen_d, pde_d)
     1457      USE dimphy
    14461458      IMPLICIT none
    14471459C
     
    14611473C
    14621474C----------------------------------------------------------------------
    1463 #include "dimensions.h"
    1464 #include "dimphy.h"
     1475cym#include "dimensions.h"
     1476cym#include "dimphy.h"
    14651477#include "YOMCST.h"
    14661478#include "YOETHF.h"
     
    15591571      END
    15601572      SUBROUTINE flxadjtq(pp, pt, pq, ldflag, kcall)
     1573      USE dimphy
    15611574      IMPLICIT none
    15621575c======================================================================
     
    15681581C        kcall=2  EVAPORATION IN DOWNDRAFTS (E.G. CUDLFS,CUDDRAF)
    15691582C
    1570 #include "dimensions.h"
    1571 #include "dimphy.h"
     1583cym#include "dimensions.h"
     1584cym#include "dimphy.h"
    15721585#include "YOMCST.h"
    15731586C
Note: See TracChangeset for help on using the changeset viewer.