/[lmdze]/trunk/phylmd/Interface_surf/clqh.f
ViewVC logotype

Annotation of /trunk/phylmd/Interface_surf/clqh.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 296 - (hide annotations)
Thu Jul 26 13:50:13 2018 UTC (5 years, 9 months ago) by guez
File size: 4630 byte(s)
Create procedure climb_hq_up from part of procedure clqh (following LMDZ).

1 guez 49 module clqh_m
2 guez 3
3 guez 38 IMPLICIT none
4 guez 3
5 guez 49 contains
6 guez 3
7 guez 221 SUBROUTINE clqh(dtime, julien, debut, nisurf, knindex, tsoil, qsol, rmu0, &
8 guez 236 rugos, rugoro, u1lay, v1lay, coef, tq_cdrag, t, q, ts, paprs, pplay, &
9     delp, radsol, albedo, snow, qsurf, precip_rain, precip_snow, fluxlat, &
10 guez 206 pctsrf_new_sic, agesno, d_t, d_q, d_ts, z0_new, flux_t, flux_q, &
11     dflux_s, dflux_l, fqcalving, ffonte, run_off_lic_0)
12 guez 3
13 guez 62 ! Author: Z. X. Li (LMD/CNRS)
14 guez 279 ! Date: 1993 Aug. 18th
15 guez 49 ! Objet : diffusion verticale de "q" et de "h"
16 guez 3
17 guez 295 use climb_hq_down_m, only: climb_hq_down
18 guez 296 use climb_hq_up_m, only: climb_hq_up
19 guez 154 USE dimphy, ONLY: klev, klon
20     USE interfsurf_hq_m, ONLY: interfsurf_hq
21 guez 38
22 guez 155 REAL, intent(in):: dtime ! intervalle du temps (s)
23 guez 221 integer, intent(in):: julien ! jour de l'annee en cours
24 guez 154 logical, intent(in):: debut
25 guez 175 integer, intent(in):: nisurf
26 guez 154 integer, intent(in):: knindex(:) ! (knon)
27 guez 208 REAL, intent(inout):: tsoil(:, :) ! (knon, nsoilmx)
28 guez 202
29 guez 225 REAL, intent(inout):: qsol(:) ! (knon)
30 guez 154 ! column-density of water in soil, in kg m-2
31    
32 guez 155 real, intent(in):: rmu0(klon) ! cosinus de l'angle solaire zenithal
33 guez 282 real, intent(in):: rugos(:) ! (knon) rugosite
34     REAL, intent(in):: rugoro(:) ! (knon)
35 guez 70
36 guez 225 REAL, intent(in):: u1lay(:), v1lay(:) ! (knon)
37     ! vitesse de la 1ere couche (m / s)
38    
39 guez 236 REAL, intent(in):: coef(:, 2:) ! (knon, 2:klev)
40 guez 155 ! Le coefficient d'echange (m**2 / s) multiplie par le cisaillement
41 guez 236 ! du vent (dV / dz)
42 guez 70
43 guez 236 REAL, intent(in):: tq_cdrag(:) ! (knon) sans unite
44    
45 guez 280 REAL, intent(in):: t(:, :) ! (knon, klev) temperature (K)
46     REAL, intent(in):: q(:, :) ! (knon, klev) humidite specifique (kg / kg)
47 guez 207 REAL, intent(in):: ts(:) ! (knon) temperature du sol (K)
48 guez 280
49     REAL, intent(in):: paprs(:, :) ! (knon, klev + 1)
50     ! pression a inter-couche (Pa)
51    
52     REAL, intent(in):: pplay(:, :) ! (knon, klev)
53     ! pression au milieu de couche (Pa)
54    
55 guez 283 REAL, intent(in):: delp(:, :) ! (knon, klev)
56     ! epaisseur de couche en pression (Pa)
57 guez 222
58 guez 267 REAL, intent(in):: radsol(:) ! (knon)
59 guez 222 ! rayonnement net au sol (Solaire + IR) W / m2
60    
61 guez 155 REAL, intent(inout):: albedo(:) ! (knon) albedo de la surface
62 guez 215 REAL, intent(inout):: snow(:) ! (knon) ! hauteur de neige
63 guez 101
64 guez 283 REAL, intent(out):: qsurf(:) ! (knon)
65     ! humidite de l'air au dessus de la surface
66    
67 guez 101 real, intent(in):: precip_rain(klon)
68 guez 155 ! liquid water mass flux (kg / m2 / s), positive down
69 guez 101
70     real, intent(in):: precip_snow(klon)
71 guez 155 ! solid water mass flux (kg / m2 / s), positive down
72 guez 101
73 guez 214 real, intent(out):: fluxlat(:) ! (knon)
74 guez 202 real, intent(in):: pctsrf_new_sic(:) ! (klon)
75 guez 175 REAL, intent(inout):: agesno(:) ! (knon)
76 guez 281 REAL, intent(out):: d_t(:, :) ! (knon, klev) incrementation de "t"
77     REAL, intent(out):: d_q(:, :) ! (knon, klev) incrementation de "q"
78 guez 221 REAL, intent(out):: d_ts(:) ! (knon) variation of surface temperature
79 guez 282 real, intent(out):: z0_new(:) ! (knon)
80 guez 206
81     REAL, intent(out):: flux_t(:) ! (knon)
82     ! (diagnostic) flux de chaleur sensible (Cp T) à la surface,
83     ! positif vers le bas, W / m2
84    
85     REAL, intent(out):: flux_q(:) ! (knon)
86     ! flux de la vapeur d'eau à la surface, en kg / (m**2 s)
87    
88 guez 283 REAL, intent(out):: dflux_s(:) ! (knon) derivee du flux sensible dF / dTs
89     REAL, intent(out):: dflux_l(:) ! (knon) derivee du flux latent dF / dTs
90 guez 154
91 guez 279 REAL, intent(out):: fqcalving(:) ! (knon)
92 guez 150 ! Flux d'eau "perdue" par la surface et n\'ecessaire pour que limiter la
93 guez 155 ! hauteur de neige, en kg / m2 / s
94 guez 101
95 guez 279 REAL ffonte(klon)
96 guez 154 ! Flux thermique utiliser pour fondre la neige
97    
98     REAL run_off_lic_0(klon)! runof glacier au pas de temps precedent
99    
100     ! Local:
101 guez 285
102 guez 206 REAL evap(size(knindex)) ! (knon) evaporation au sol
103 guez 281 REAL, dimension(size(knindex), klev):: cq, dq, ch, dh ! (knon, klev)
104 guez 280 REAL pkf(size(knindex), klev) ! (knon, klev)
105 guez 206 real tsurf_new(size(knindex)) ! (knon)
106 guez 3
107 guez 49 !----------------------------------------------------------------
108 guez 3
109 guez 295 call climb_hq_down(pkf, cq, dq, ch, dh, paprs, pplay, t, coef, dtime, &
110     delp, q)
111 guez 222 CALL interfsurf_hq(dtime, julien, rmu0, nisurf, knindex, debut, tsoil, &
112 guez 294 qsol, u1lay, v1lay, t(:, 1), q(:, 1), tq_cdrag, ch(:, 1), cq(:, 1), &
113     dh(:, 1), dq(:, 1), precip_rain, precip_snow, rugos, rugoro, snow, &
114 guez 295 qsurf, ts, pplay(:, 1), paprs(:, 1), radsol, evap, flux_t, fluxlat, &
115 guez 294 dflux_l, dflux_s, tsurf_new, albedo, z0_new, pctsrf_new_sic, agesno, &
116     fqcalving, ffonte, run_off_lic_0)
117 guez 206 flux_q = - evap
118 guez 207 d_ts = tsurf_new - ts
119 guez 296 call climb_hq_up(d_t, d_q, cq, dq, ch, dh, flux_t, flux_q, dtime, pkf, t, q)
120 guez 49
121     END SUBROUTINE clqh
122    
123     end module clqh_m

  ViewVC Help
Powered by ViewVC 1.1.21