Ignore:
Timestamp:
Jan 21, 2014, 3:25:10 PM (11 years ago)
Author:
jghattas
Message:

Bug corrections done by Fuxing Wang.

Location:
LMDZ5/branches/LMDZ5-DOFOCO/libf/phylmd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/branches/LMDZ5-DOFOCO/libf/phylmd/coefcdrag.F90

    r1785 r1940  
    7575                 (1.+ RETV * max(q(i),0.0))))
    7676       ztsolv(i) = ts(i)
    77        ztvd(i) = t(i) * (psol(i)/pref(i))**RKAPPA
    7877       trm0(i) = 1. + RETV * max(qsurf(i),0.0)
    7978       trm1(i) = 1. + RETV * max(q(i),0.0)
    8079       ztsolv(i) = ztsolv(i) * trm0(i)
    81        ztvd(i) = ztvd(i) * trm1(i)
     80       ztvd(i) = (t(i)+zdphi(i)/RCPD/(1.+RVTMP2*q(i))) &
     81          *(1.+RETV*q(i))
    8282       zri1(i) = zdphi(i)*(ztvd(i)-ztsolv(i))/(zdu2(i)*ztvd(i))
    8383!
  • LMDZ5/branches/LMDZ5-DOFOCO/libf/phylmd/fisrtilp.F90

    r1746 r1940  
    441441              zqn(i) = zq(i)
    442442              rneb(i,k) = 1.0                 
    443               zcond(i) = MAX(0.0,zqn(i)-zqs(i))/(1+zdqs(i))
     443              zcond(i) = MAX(0.0,zqn(i)-zqs(i))
    444444              rhcl(i,k)=1.0
    445445           ELSE
    446               zcond(i) = MAX(0.0,zqn(i)-zqs(i))*rneb(i,k)/(1+zdqs(i))
     446              zcond(i) = MAX(0.0,zqn(i)-zqs(i))*rneb(i,k)
    447447              rhcl(i,k)=(zqs(i)+zq(i)-zdelq)/2./zqs(i)
    448448           ENDIF
Note: See TracChangeset for help on using the changeset viewer.