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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 341 - (hide annotations)
Mon Oct 21 06:11:44 2019 UTC (4 years, 8 months ago) by guez
File size: 4899 byte(s)
Remove intermediate variables in `pbl_surface`

Remove file `diagcld2.f90`, no longer used since revision 340.

In procedure cdrag, rename zcdn to cdn. In procedure `interfsurf_hq`,
rename `temp_air` to t1lay: this is the corresponding name in
`calcul_fluxs`, is consistent with the other names `[uvq]1lay` and is
more precise.

In procedure `pbl_surface`, rename t and q to `t_seri` and `q_seri`,
which are the names in procedure physiq. Remove needless intermediate
variables qair1, tairsol, psfce, patm and zgeo1. Remove useless
initialization of yrugos. Remove a useless assignment `i = ni(j)`.

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 301 SUBROUTINE clqh(julien, nisurf, knindex, tsoil, qsol, mu0, rugos, rugoro, &
8 guez 308 u1lay, v1lay, coef, cdragh, t, q, ts, paprs, pplay, delp, radsol, &
9 guez 305 albedo, snow, qsurf, rain_fall, snow_fall, fluxlat, pctsrf_new_sic, &
10 guez 301 agesno, d_t, d_q, d_ts, z0_new, flux_t, flux_q, dflux_s, dflux_l, &
11     fqcalving, ffonte, run_off_lic_0, run_off_lic)
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 300 USE dimphy, ONLY: klev
20 guez 154 USE interfsurf_hq_m, ONLY: interfsurf_hq
21 guez 297 USE suphec_m, ONLY: rkappa
22 guez 38
23 guez 221 integer, intent(in):: julien ! jour de l'annee en cours
24 guez 175 integer, intent(in):: nisurf
25 guez 154 integer, intent(in):: knindex(:) ! (knon)
26 guez 208 REAL, intent(inout):: tsoil(:, :) ! (knon, nsoilmx)
27 guez 202
28 guez 225 REAL, intent(inout):: qsol(:) ! (knon)
29 guez 154 ! column-density of water in soil, in kg m-2
30    
31 guez 300 real, intent(in):: mu0(:) ! (knon) cosinus de l'angle solaire zenithal
32 guez 282 real, intent(in):: rugos(:) ! (knon) rugosite
33     REAL, intent(in):: rugoro(:) ! (knon)
34 guez 70
35 guez 225 REAL, intent(in):: u1lay(:), v1lay(:) ! (knon)
36     ! vitesse de la 1ere couche (m / s)
37    
38 guez 236 REAL, intent(in):: coef(:, 2:) ! (knon, 2:klev)
39 guez 155 ! Le coefficient d'echange (m**2 / s) multiplie par le cisaillement
40 guez 236 ! du vent (dV / dz)
41 guez 70
42 guez 308 REAL, intent(in):: cdragh(:) ! (knon) sans unite
43 guez 236
44 guez 341 REAL, intent(in):: t(:, :) ! (knon, klev) air temperature, in K
45 guez 311 REAL, intent(in):: q(:, :) ! (knon, klev) humidit\'e sp\'ecifique
46 guez 207 REAL, intent(in):: ts(:) ! (knon) temperature du sol (K)
47 guez 280
48     REAL, intent(in):: paprs(:, :) ! (knon, klev + 1)
49 guez 311 ! pression \`a l'inter-couche (Pa)
50 guez 280
51     REAL, intent(in):: pplay(:, :) ! (knon, klev)
52     ! pression au milieu de couche (Pa)
53    
54 guez 283 REAL, intent(in):: delp(:, :) ! (knon, klev)
55     ! epaisseur de couche en pression (Pa)
56 guez 222
57 guez 267 REAL, intent(in):: radsol(:) ! (knon)
58 guez 308 ! surface net downward radiative flux, in W / m2
59 guez 222
60 guez 155 REAL, intent(inout):: albedo(:) ! (knon) albedo de la surface
61 guez 101
62 guez 330 REAL, intent(inout):: snow(:) ! (knon)
63 guez 332 ! column-density of mass of snow at the surface, in kg m-2
64 guez 330
65 guez 283 REAL, intent(out):: qsurf(:) ! (knon)
66     ! humidite de l'air au dessus de la surface
67    
68 guez 305 real, intent(in):: rain_fall(:) ! (knon)
69 guez 155 ! liquid water mass flux (kg / m2 / s), positive down
70 guez 101
71 guez 305 real, intent(in):: snow_fall(:) ! (knon)
72 guez 155 ! solid water mass flux (kg / m2 / s), positive down
73 guez 101
74 guez 311 real, intent(out):: fluxlat(:) ! (knon) flux de chaleur latente, en W m-2
75 guez 300 real, intent(in):: pctsrf_new_sic(:) ! (knon)
76 guez 175 REAL, intent(inout):: agesno(:) ! (knon)
77 guez 341 REAL, intent(out):: d_t(:, :) ! (knon, klev) variation of air temperature t
78 guez 281 REAL, intent(out):: d_q(:, :) ! (knon, klev) incrementation de "q"
79 guez 221 REAL, intent(out):: d_ts(:) ! (knon) variation of surface temperature
80 guez 282 real, intent(out):: z0_new(:) ! (knon)
81 guez 206
82     REAL, intent(out):: flux_t(:) ! (knon)
83     ! (diagnostic) flux de chaleur sensible (Cp T) à la surface,
84     ! positif vers le bas, W / m2
85    
86     REAL, intent(out):: flux_q(:) ! (knon)
87     ! flux de la vapeur d'eau à la surface, en kg / (m**2 s)
88    
89 guez 283 REAL, intent(out):: dflux_s(:) ! (knon) derivee du flux sensible dF / dTs
90     REAL, intent(out):: dflux_l(:) ! (knon) derivee du flux latent dF / dTs
91 guez 154
92 guez 279 REAL, intent(out):: fqcalving(:) ! (knon)
93 guez 150 ! Flux d'eau "perdue" par la surface et n\'ecessaire pour que limiter la
94 guez 155 ! hauteur de neige, en kg / m2 / s
95 guez 101
96 guez 300 REAL, intent(out):: ffonte(:) ! (knon)
97     ! flux thermique utilis\'e pour fondre la neige
98    
99     REAL, intent(inout):: run_off_lic_0(:) ! (knon)
100     ! run-off glacier au pas de temps precedent
101 guez 154
102 guez 301 REAL, intent(OUT):: run_off_lic(:) ! (knon) ruissellement total
103    
104 guez 154 ! Local:
105 guez 285
106 guez 297 INTEGER k
107 guez 206 REAL evap(size(knindex)) ! (knon) evaporation au sol
108 guez 281 REAL, dimension(size(knindex), klev):: cq, dq, ch, dh ! (knon, klev)
109 guez 280 REAL pkf(size(knindex), klev) ! (knon, klev)
110 guez 206 real tsurf_new(size(knindex)) ! (knon)
111 guez 3
112 guez 49 !----------------------------------------------------------------
113 guez 3
114 guez 297 forall (k = 1:klev) pkf(:, k) = (paprs(:, 1) / pplay(:, k))**RKAPPA
115     ! (La pression de r\'ef\'erence est celle au sol.)
116    
117 guez 299 call climb_hq_down(pkf, cq, dq, ch, dh, paprs, pplay, t, coef, delp, q)
118 guez 301 CALL interfsurf_hq(julien, mu0, nisurf, knindex, tsoil, qsol, u1lay, &
119 guez 308 v1lay, t(:, 1), q(:, 1), cdragh, ch(:, 1), cq(:, 1), dh(:, 1), &
120 guez 305 dq(:, 1), rain_fall, snow_fall, rugos, rugoro, snow, qsurf, ts, &
121 guez 301 pplay(:, 1), paprs(:, 1), radsol, evap, flux_t, fluxlat, dflux_l, &
122     dflux_s, tsurf_new, albedo, z0_new, pctsrf_new_sic, agesno, &
123     fqcalving, ffonte, run_off_lic_0, run_off_lic)
124 guez 206 flux_q = - evap
125 guez 207 d_ts = tsurf_new - ts
126 guez 299 call climb_hq_up(d_t, d_q, cq, dq, ch, dh, flux_t, flux_q, pkf, t, q)
127 guez 49
128     END SUBROUTINE clqh
129    
130     end module clqh_m

  ViewVC Help
Powered by ViewVC 1.1.21