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

Contents of /trunk/phylmd/concvl.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 205 - (show annotations)
Tue Jun 21 15:16:03 2016 UTC (7 years, 11 months ago) by guez
Original Path: trunk/Sources/phylmd/concvl.f
File size: 2695 byte(s)
dnwd0 is just - mp. Compute it simply in concvl.

da, phi and mp were set to 0 in physiq before the call to
concvl. Clearer to set da1, phi1 and mp1 to 0 in cv_driver so they are
intent out.

qcheck was debugging, printed to standard output and was called
several times per time step of physics.

zxtsol was a duplicate of ztsol.

1 module concvl_m
2
3 IMPLICIT NONE
4
5 contains
6
7 SUBROUTINE concvl(paprs, play, t, q, u, v, sig1, w01, d_t, d_q, d_u, &
8 d_v, rain, kbas, itop_con, upwd, dnwd, dnwd0, ma, cape, iflag, qcondc, &
9 pmflxr, da, phi, mp)
10
11 ! From phylmd/concvl.F, version 1.3, 2005/04/15 12:36:17
12 ! Author: Z. X. Li (LMD/CNRS)
13 ! Date: 1993 August 18
14 ! Objet : schéma de convection d'Emanuel (1991), interface
15
16 use comconst, only: dtphys
17 use cv_driver_m, only: cv_driver
18 USE dimphy, ONLY: klev, klon
19 USE fcttre, ONLY: foeew
20 USE suphec_m, ONLY: retv, rtt
21 USE yoethf_m, ONLY: r2es
22
23 REAL, INTENT (IN):: paprs(klon, klev + 1)
24 REAL, INTENT (IN):: play(klon, klev)
25 REAL, intent(in):: t(klon, klev) ! temperature (K)
26 real, intent(in):: q(klon, klev) ! fraction massique de vapeur d'eau
27 real, INTENT (IN):: u(klon, klev), v(klon, klev)
28 REAL, intent(inout):: sig1(klon, klev), w01(klon, klev)
29 REAL, intent(out):: d_t(klon, klev)
30 REAL, intent(out):: d_q(klon, klev) ! increment de la vapeur d'eau
31 REAL, intent(out):: d_u(klon, klev), d_v(klon, klev)
32 REAL, intent(out):: rain(klon) ! pluie (mm / s)
33 INTEGER, intent(out):: kbas(klon)
34 integer, intent(inout):: itop_con(klon)
35
36 REAL, intent(out):: upwd(klon, klev)
37 ! saturated updraft mass flux (kg / m2 / s)
38
39 real, intent(out):: dnwd(klon, klev)
40 ! saturated downdraft mass flux (kg / m2 / s)
41
42 real, intent(out):: dnwd0(klon, klev)
43 ! unsaturated downdraft mass flux, in kg m-2 s-1
44
45 REAL ma(klon, klev)
46 real cape(klon) ! output (J / kg)
47 INTEGER, intent(out):: iflag(klon)
48 REAL qcondc(klon, klev)
49 REAL pmflxr(klon, klev + 1)
50 REAL, intent(out):: da(:, :) ! (klon, klev)
51 REAL, intent(out):: phi(:, :, :) ! (klon, klev, klev)
52
53 REAL, intent(out):: mp(:, :) ! (klon, klev) Mass flux of the
54 ! unsaturated downdraft, defined positive downward, in kg m-2
55 ! s-1. M_p in Emanuel (1991 928).
56
57 ! Local:
58 REAL zx_qs, cor
59 INTEGER i, k
60 REAL qs(klon, klev)
61
62 !-----------------------------------------------------------------
63
64 DO k = 1, klev
65 DO i = 1, klon
66 zx_qs = min(0.5, r2es * foeew(t(i, k), rtt >= t(i, k)) / play(i, k))
67 cor = 1. / (1. - retv * zx_qs)
68 qs(i, k) = zx_qs * cor
69 END DO
70 END DO
71
72 CALL cv_driver(t, q, qs, u, v, play / 100., paprs / 100., iflag, d_t, &
73 d_q, d_u, d_v, rain, pmflxr, sig1, w01, kbas, itop_con, ma, upwd, &
74 dnwd, qcondc, cape, da, phi, mp)
75 dnwd0 = - mp
76 rain = rain / 86400.
77 d_t = dtphys * d_t
78 d_q = dtphys * d_q
79 d_u = dtphys * d_u
80 d_v = dtphys * d_v
81
82 END SUBROUTINE concvl
83
84 end module concvl_m

  ViewVC Help
Powered by ViewVC 1.1.21