/[lmdze]/trunk/Sources/phylmd/FCTTRE.f
ViewVC logotype

Annotation of /trunk/Sources/phylmd/FCTTRE.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 221 - (hide annotations)
Thu Apr 20 14:44:47 2017 UTC (7 years, 1 month ago) by guez
File size: 1251 byte(s)
clcdrag is no longer used in LMDZ. Replaced by cdrag in LMDZ. In cdrag
in LMDZ, zxli is a symbolic constant, false. So removed case zxli true
in LMDZE.

read_sst is called zero (if no ocean point on the whole planet) time or
once per call of physiq. If mod(itap - 1, lmt_pas) == 0 then we have
advanced in time of lmt_pas and deja_lu is necessarily false.

qsat[sl] and dqsat[sl] were never called.

Added output of qsurf in histins, following LMDZ.

Last dummy argument dtime of phystokenc is always the same as first
dummy argument pdtphys, removed dtime.

Removed make rules for nag_xref95, since it does not exist any longer.

1 guez 3 module FCTTRE
2    
3 guez 78 ! From phylmd/FCTTRE.inc, version 1.2, 2004/06/22 11:45:32
4 guez 3
5 guez 43 ! This module includes the thermodynamical functions for the cycle
6 guez 78 ! 39 ECMWF physics package. Consistent with "SUPHEC_M" basic
7 guez 43 ! physical constants, assuming the partial pressure of water vapour
8     ! is given by a first order Taylor expansion of "Qs(T)" with respect
9     ! to temperature, using constants in "yoethf_m".
10 guez 3
11 guez 70 ! Probably from Buck, 1981, Journal of Applied Meteorology, volume
12     ! 20, number 12, page 1527.
13 guez 43
14 guez 3 implicit none
15    
16     contains
17    
18 guez 109 elemental REAL function FOEEW(T, ICE)
19 guez 3
20 guez 38 use yoethf_m, only: R3LES, R3IES, R4LES, R4IES
21     use SUPHEC_M, only: rtt
22 guez 3
23 guez 70 REAL, intent(in):: T
24 guez 109 logical, intent(in):: ICE ! else liquid
25 guez 3
26     !-----------------------
27    
28 guez 109 FOEEW = exp(merge(R3IES / (T - R4IES), R3lES / (T - R4lES), ice) &
29 guez 103 * (T - RTT))
30 guez 3
31     end function FOEEW
32    
33     !******************************************
34    
35 guez 109 REAL function FOEDE(T, ICE, P5ARG, QS, PCOARG)
36 guez 3
37 guez 38 use yoethf_m, only: R4LES, R4IES
38 guez 3
39 guez 103 REAL, intent(in):: T
40 guez 109 logical, intent(in):: ICE ! else liquid
41 guez 37 real, intent(in):: P5ARG, QS, PCOARG
42 guez 3
43     !-----------------------
44    
45 guez 109 FOEDE = QS * PCOARG * P5ARG / (T - merge(R4IES, R4lES, ice))**2
46 guez 3
47     end function FOEDE
48    
49     end module FCTTRE

  ViewVC Help
Powered by ViewVC 1.1.21