Ignore:
Timestamp:
Apr 10, 2014, 3:16:18 PM (11 years ago)
Author:
Laurent Fairhead
Message:

Homogénéisation des calculs du nombre de Richardson et de f_cdrag entre coefcdrag.F90 et clcdrag.F90
modification des zlev pour orchidee


Keeping the same calculation between coefcdrag.F90 and clcdrag.F90 for richardson number & f_cdrag
modification of zlev for orchidee

Fuxing Wang

Location:
LMDZ5/trunk/libf/phylmd
Files:
2 edited

Legend:

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

    r1907 r2011  
    5252      include "YOMCST.h"
    5353      include "YOETHF.h"
     54      INCLUDE "clesphys.h"
    5455! Quelques constantes :
    5556      REAL, parameter :: RKAR=0.40, CB=5.0, CC=5.0, CD=5.0, cepdu2=(0.1)**2
     
    7576                 (1.+ RETV * max(q(i),0.0))))
    7677       ztsolv(i) = ts(i)
    77        ztvd(i) = t(i) * (psol(i)/pref(i))**RKAPPA
     78!       ztvd(i) = t(i) * (psol(i)/pref(i))**RKAPPA
     79       ztvd(i) = (t(i)+zdphi(i)/RCPD/(1.+RVTMP2*q(i))) &
     80          *(1.+RETV*q(i))
    7881       trm0(i) = 1. + RETV * max(qsurf(i),0.0)
    7982       trm1(i) = 1. + RETV * max(q(i),0.0)
    8083       ztsolv(i) = ztsolv(i) * trm0(i)
    81        ztvd(i) = ztvd(i) * trm1(i)
     84!       ztvd(i) = ztvd(i) * trm1(i)
    8285       zri1(i) = zdphi(i)*(ztvd(i)-ztsolv(i))/(zdu2(i)*ztvd(i))
    8386!
     
    110113           zcfm1(i) = cdran(i) * friv(i)
    111114           frih(i) = max(1./ (1.+3.*CB*zri1(i)*zscf(i)), 0.1 )
    112            zcfh1(i) = cdran(i) * frih(i)
     115!           zcfh1(i) = cdran(i) * frih(i)
     116           zcfh1(i) = f_cdrag_ter*cdran(i) * frih(i)
     117           IF(nsrf.EQ.is_oce) zcfh1(i)=f_cdrag_oce*cdran(i)*frih(i)
    113118           cdram(i) = zcfm1(i)
    114119           cdrah(i) = zcfh1(i)
     
    126131                 *(1.0+zdphi(i)/(RG*rugos(i)))))
    127132           zcfm2(i) = cdran(i)*max((1.-2.0*CB*zri1(i)*zucf(i)),0.1)
    128            zcfh2(i) = cdran(i)*max((1.-3.0*CB*zri1(i)*zucf(i)),0.1)
     133!           zcfh2(i) = cdran(i)*max((1.-3.0*CB*zri1(i)*zucf(i)),0.1)
     134           zcfh2(i) = f_cdrag_ter*cdran(i)*max((1.-3.0*CB*zri1(i)*zucf(i)),0.1)
    129135           cdram(i) = zcfm2(i)
    130136           cdrah(i) = zcfh2(i)
     
    138144         zcr(i) = (0.0016/(cdran(i)*SQRT(zdu2(i))))*ABS(ztvd(i)-ztsolv(i)) &
    139145               **(1./3.)
    140          IF (nsrf.EQ.is_oce) cdrah(i) = cdran(i)*(1.0+zcr(i)**1.25) &
     146!         IF (nsrf.EQ.is_oce) cdrah(i) = cdran(i)*(1.0+zcr(i)**1.25) &
     147!                  **(1./1.25)
     148         IF (nsrf.EQ.is_oce) cdrah(i)=f_cdrag_oce*cdran(i)*(1.0+zcr(i)**1.25) &
    141149                  **(1./1.25)
    142150       ENDIF
  • LMDZ5/trunk/libf/phylmd/surf_land_orchidee_mod.F90

    r1907 r2011  
    370370
    371371! zlev(1:knon) = (100.*plev(1:knon))/((ps(1:knon)/287.05*temp_air(1:knon))*9.80665)
    372     zlev(1:knon) = (100.*plev(1:knon))/((ps(1:knon)/RD*temp_air(1:knon))*RG)
     372!    zlev(1:knon) = (100.*plev(1:knon))/((ps(1:knon)/RD*temp_air(1:knon))*RG)
     373     zlev(1:knon) = plev(1:knon)*RD*temp_air(1:knon)/((ps(1:knon)*100.0)*RG)
    373374
    374375
Note: See TracChangeset for help on using the changeset viewer.