/[lmdze]/trunk/phylmd/yoethf.f
ViewVC logotype

Diff of /trunk/phylmd/yoethf.f

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 265 by guez, Mon Feb 5 10:39:38 2018 UTC revision 266 by guez, Thu Apr 19 17:54:55 2018 UTC
# Line 3  module yoethf_m Line 3  module yoethf_m
3    ! From phylmd/yoethf.inc, version 1.1.1.1 2004/05/19 12:53:09    ! From phylmd/yoethf.inc, version 1.1.1.1 2004/05/19 12:53:09
4    ! Derived constants specific to ECMWF thermodynamics    ! Derived constants specific to ECMWF thermodynamics
5    
6      use SUPHEC_M, only: ratm, rcpd, rcpv, rd, restt, rtt, rv
7    
8    implicit none    implicit none
9    
10    ! Constants used for computation of saturation mixing ratio over    ! Constants used for computation of saturation mixing ratio over
11    ! liquid water (r.les) or ice (r.ies):    ! liquid water (r.les) or ice (r.ies):
   REAL R2ES, R5LES, R5IES  
12    real, parameter:: R3LES = 17.269, R3IES = 21.875, R4LES = 35.86, R4IES = 7.66    real, parameter:: R3LES = 17.269, R3IES = 21.875, R4LES = 35.86, R4IES = 7.66
13      real, parameter:: R5LES=R3LES*(RTT-R4LES)
14      real, parameter:: R5IES=R3IES*(RTT-R4IES)
15    
16    REAL RVTMP2    real, parameter:: RVTMP2=RCPV/RCPD-1.
17    real RHOH2O ! density of liquid water    real, parameter:: RHOH2O=RATM/100. ! density of liquid water
18      real, parameter:: R2ES = RESTT * RD / RV
   save  
   
 contains  
   
   subroutine yoethf  
   
     ! Calcul des constantes pour les fonctions thermodynamiques  
   
     use SUPHEC_M, only: ratm, rcpd, rcpv, rd, restt, rtt, rv  
   
     !-----------------------------------------  
   
     RVTMP2=RCPV/RCPD-1.  
     RHOH2O=RATM/100.  
     R2ES = RESTT * RD / RV  
     R5LES=R3LES*(RTT-R4LES)  
     R5IES=R3IES*(RTT-R4IES)  
19    
20    end subroutine yoethf    private ratm, rcpd, rcpv, rd, restt, rtt, rv
21    
22  end module yoethf_m  end module yoethf_m

Legend:
Removed from v.265  
changed lines
  Added in v.266

  ViewVC Help
Powered by ViewVC 1.1.21