Changeset 2056 for LMDZ5/branches/testing/libf/dyn3d_common/q_sat.F
- Timestamp:
- Jun 11, 2014, 3:46:46 PM (10 years ago)
- Location:
- LMDZ5/branches/testing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/branches/testing
- Property svn:mergeinfo changed
/LMDZ5/trunk merged: 1998,2000-2023,2025-2029,2032,2034,2036-2049,2051-2055
- Property svn:mergeinfo changed
-
LMDZ5/branches/testing/libf/dyn3d_common/q_sat.F
r1999 r2056 2 2 ! $Header$ 3 3 ! 4 c 5 c 4 ! 5 ! 6 6 7 7 subroutine q_sat(np,temp,pres,qsat) 8 c 8 ! 9 9 IMPLICIT none 10 c======================================================================11 cAutheur(s): Z.X. Li (LMD/CNRS)12 creecriture vectorisee par F. Hourdin.13 cObjet: calculer la vapeur d'eau saturante (formule Centre Euro.)14 c======================================================================15 cArguments:16 ckelvin---input-R: temperature en Kelvin17 cmillibar--input-R: pression en mb18 c 19 cq_sat----output-R: vapeur d'eau saturante en kg/kg20 c======================================================================21 c 10 !====================================================================== 11 ! Autheur(s): Z.X. Li (LMD/CNRS) 12 ! reecriture vectorisee par F. Hourdin. 13 ! Objet: calculer la vapeur d'eau saturante (formule Centre Euro.) 14 !====================================================================== 15 ! Arguments: 16 ! kelvin---input-R: temperature en Kelvin 17 ! millibar--input-R: pression en mb 18 ! 19 ! q_sat----output-R: vapeur d'eau saturante en kg/kg 20 !====================================================================== 21 ! 22 22 integer np 23 23 REAL temp(np),pres(np),qsat(np) 24 c 24 ! 25 25 REAL r2es 26 26 PARAMETER (r2es=611.14 *18.0153/28.9644) 27 c 27 ! 28 28 REAL r3les, r3ies, r3es 29 29 PARAMETER (R3LES=17.269) 30 30 PARAMETER (R3IES=21.875) 31 c 31 ! 32 32 REAL r4les, r4ies, r4es 33 33 PARAMETER (R4LES=35.86) 34 34 PARAMETER (R4IES=7.66) 35 c 35 ! 36 36 REAL rtt 37 37 PARAMETER (rtt=273.16) 38 c 38 ! 39 39 REAL retv 40 40 PARAMETER (retv=28.9644/18.0153 - 1.0) … … 42 42 real zqsat 43 43 integer ip 44 c 45 C------------------------------------------------------------------46 c 47 c 44 ! 45 ! ------------------------------------------------------------------ 46 ! 47 ! 48 48 49 49 do ip=1,np 50 50 51 cwrite(*,*)'kelvin,millibar=',kelvin,millibar52 cwrite(*,*)'temp,pres=',temp(ip),pres(ip)53 c 51 ! write(*,*)'kelvin,millibar=',kelvin,millibar 52 ! write(*,*)'temp,pres=',temp(ip),pres(ip) 53 ! 54 54 IF (temp(ip) .LE. rtt) THEN 55 55 r3es = r3ies … … 59 59 r4es = r4les 60 60 ENDIF 61 c 61 ! 62 62 zqsat=r2es/pres(ip)*EXP(r3es*(temp(ip)-rtt)/(temp(ip)-r4es)) 63 63 zqsat=MIN(0.5,ZQSAT) 64 64 zqsat=zqsat/(1.-retv *zqsat) 65 c 65 ! 66 66 qsat(ip)= zqsat 67 cwrite(*,*)'qsat=',qsat(ip)67 ! write(*,*)'qsat=',qsat(ip) 68 68 69 69 enddo 70 c 70 ! 71 71 RETURN 72 72 END
Note: See TracChangeset
for help on using the changeset viewer.