Changeset 5 for trunk/libf/dyn3d/vlspltqs.F
- Timestamp:
- Oct 14, 2010, 3:18:14 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libf/dyn3d/vlspltqs.F
r1 r5 65 65 REAL rtt,retv,r2es,r3les,r3ies,r4les,r4ies,play 66 66 REAL ptarg,pdelarg,foeew,zdelta 67 REAL tempe(ip1jmp1) 67 ! ADAPTATION GCM POUR CP(T) 68 REAL tempe(ip1jmp1,llm) 68 69 69 70 c fonction psat(T) … … 84 85 c-- approximation: au milieu des couches play(l)=(p(l)+p(l+1))/2 85 86 c pour eviter une exponentielle. 87 88 ! ADAPTATION GCM POUR CP(T) 89 call tpot2t(ip1jmp1*llm,teta,tempe,pk) 86 90 DO l = 1, llm 87 91 DO ij = 1, ip1jmp1 88 tempe(ij) = teta(ij,l) * pk(ij,l) /cpp 89 ENDDO 90 DO ij = 1, ip1jmp1 91 zdelta = MAX( 0., SIGN(1., rtt - tempe(ij)) ) 92 zdelta = MAX( 0., SIGN(1., rtt - tempe(ij,l)) ) 92 93 play = 0.5*(p(ij,l)+p(ij,l+1)) 93 qsat(ij,l) = MIN(0.5, r2es* FOEEW(tempe(ij ),zdelta) / play )94 qsat(ij,l) = MIN(0.5, r2es* FOEEW(tempe(ij,l),zdelta) / play ) 94 95 qsat(ij,l) = qsat(ij,l) / ( 1. - retv * qsat(ij,l) ) 95 96 ENDDO
Note: See TracChangeset
for help on using the changeset viewer.