4 |
|
|
5 |
contains |
contains |
6 |
|
|
7 |
SUBROUTINE clqh(julien, debut, nisurf, knindex, tsoil, qsol, rmu0, rugos, & |
SUBROUTINE clqh(julien, nisurf, knindex, tsoil, qsol, mu0, rugos, rugoro, & |
8 |
rugoro, u1lay, v1lay, coef, tq_cdrag, t, q, ts, paprs, pplay, delp, & |
u1lay, v1lay, coef, tq_cdrag, t, q, ts, paprs, pplay, delp, radsol, & |
9 |
radsol, albedo, snow, qsurf, precip_rain, precip_snow, fluxlat, & |
albedo, snow, qsurf, rain_fall, snow_fall, fluxlat, pctsrf_new_sic, & |
10 |
pctsrf_new_sic, agesno, d_t, d_q, d_ts, z0_new, flux_t, flux_q, & |
agesno, d_t, d_q, d_ts, z0_new, flux_t, flux_q, dflux_s, dflux_l, & |
11 |
dflux_s, dflux_l, fqcalving, ffonte, run_off_lic_0) |
fqcalving, ffonte, run_off_lic_0, run_off_lic) |
12 |
|
|
13 |
! Author: Z. X. Li (LMD/CNRS) |
! Author: Z. X. Li (LMD/CNRS) |
14 |
! Date: 1993 Aug. 18th |
! Date: 1993 Aug. 18th |
16 |
|
|
17 |
use climb_hq_down_m, only: climb_hq_down |
use climb_hq_down_m, only: climb_hq_down |
18 |
use climb_hq_up_m, only: climb_hq_up |
use climb_hq_up_m, only: climb_hq_up |
19 |
use comconst, only: dtphys |
USE dimphy, ONLY: klev |
|
USE dimphy, ONLY: klev, klon |
|
20 |
USE interfsurf_hq_m, ONLY: interfsurf_hq |
USE interfsurf_hq_m, ONLY: interfsurf_hq |
21 |
USE suphec_m, ONLY: rkappa |
USE suphec_m, ONLY: rkappa |
22 |
|
|
23 |
integer, intent(in):: julien ! jour de l'annee en cours |
integer, intent(in):: julien ! jour de l'annee en cours |
|
logical, intent(in):: debut |
|
24 |
integer, intent(in):: nisurf |
integer, intent(in):: nisurf |
25 |
integer, intent(in):: knindex(:) ! (knon) |
integer, intent(in):: knindex(:) ! (knon) |
26 |
REAL, intent(inout):: tsoil(:, :) ! (knon, nsoilmx) |
REAL, intent(inout):: tsoil(:, :) ! (knon, nsoilmx) |
28 |
REAL, intent(inout):: qsol(:) ! (knon) |
REAL, intent(inout):: qsol(:) ! (knon) |
29 |
! column-density of water in soil, in kg m-2 |
! column-density of water in soil, in kg m-2 |
30 |
|
|
31 |
real, intent(in):: rmu0(klon) ! cosinus de l'angle solaire zenithal |
real, intent(in):: mu0(:) ! (knon) cosinus de l'angle solaire zenithal |
32 |
real, intent(in):: rugos(:) ! (knon) rugosite |
real, intent(in):: rugos(:) ! (knon) rugosite |
33 |
REAL, intent(in):: rugoro(:) ! (knon) |
REAL, intent(in):: rugoro(:) ! (knon) |
34 |
|
|
63 |
REAL, intent(out):: qsurf(:) ! (knon) |
REAL, intent(out):: qsurf(:) ! (knon) |
64 |
! humidite de l'air au dessus de la surface |
! humidite de l'air au dessus de la surface |
65 |
|
|
66 |
real, intent(in):: precip_rain(klon) |
real, intent(in):: rain_fall(:) ! (knon) |
67 |
! liquid water mass flux (kg / m2 / s), positive down |
! liquid water mass flux (kg / m2 / s), positive down |
68 |
|
|
69 |
real, intent(in):: precip_snow(klon) |
real, intent(in):: snow_fall(:) ! (knon) |
70 |
! solid water mass flux (kg / m2 / s), positive down |
! solid water mass flux (kg / m2 / s), positive down |
71 |
|
|
72 |
real, intent(out):: fluxlat(:) ! (knon) |
real, intent(out):: fluxlat(:) ! (knon) |
73 |
real, intent(in):: pctsrf_new_sic(:) ! (klon) |
real, intent(in):: pctsrf_new_sic(:) ! (knon) |
74 |
REAL, intent(inout):: agesno(:) ! (knon) |
REAL, intent(inout):: agesno(:) ! (knon) |
75 |
REAL, intent(out):: d_t(:, :) ! (knon, klev) incrementation de "t" |
REAL, intent(out):: d_t(:, :) ! (knon, klev) incrementation de "t" |
76 |
REAL, intent(out):: d_q(:, :) ! (knon, klev) incrementation de "q" |
REAL, intent(out):: d_q(:, :) ! (knon, klev) incrementation de "q" |
91 |
! Flux d'eau "perdue" par la surface et n\'ecessaire pour que limiter la |
! Flux d'eau "perdue" par la surface et n\'ecessaire pour que limiter la |
92 |
! hauteur de neige, en kg / m2 / s |
! hauteur de neige, en kg / m2 / s |
93 |
|
|
94 |
REAL ffonte(klon) |
REAL, intent(out):: ffonte(:) ! (knon) |
95 |
! Flux thermique utiliser pour fondre la neige |
! flux thermique utilis\'e pour fondre la neige |
96 |
|
|
97 |
|
REAL, intent(inout):: run_off_lic_0(:) ! (knon) |
98 |
|
! run-off glacier au pas de temps precedent |
99 |
|
|
100 |
REAL run_off_lic_0(klon)! runof glacier au pas de temps precedent |
REAL, intent(OUT):: run_off_lic(:) ! (knon) ruissellement total |
101 |
|
|
102 |
! Local: |
! Local: |
103 |
|
|
112 |
forall (k = 1:klev) pkf(:, k) = (paprs(:, 1) / pplay(:, k))**RKAPPA |
forall (k = 1:klev) pkf(:, k) = (paprs(:, 1) / pplay(:, k))**RKAPPA |
113 |
! (La pression de r\'ef\'erence est celle au sol.) |
! (La pression de r\'ef\'erence est celle au sol.) |
114 |
|
|
115 |
call climb_hq_down(pkf, cq, dq, ch, dh, paprs, pplay, t, coef, dtphys, & |
call climb_hq_down(pkf, cq, dq, ch, dh, paprs, pplay, t, coef, delp, q) |
116 |
delp, q) |
CALL interfsurf_hq(julien, mu0, nisurf, knindex, tsoil, qsol, u1lay, & |
117 |
CALL interfsurf_hq(dtphys, julien, rmu0, nisurf, knindex, debut, tsoil, & |
v1lay, t(:, 1), q(:, 1), tq_cdrag, ch(:, 1), cq(:, 1), dh(:, 1), & |
118 |
qsol, u1lay, v1lay, t(:, 1), q(:, 1), tq_cdrag, ch(:, 1), cq(:, 1), & |
dq(:, 1), rain_fall, snow_fall, rugos, rugoro, snow, qsurf, ts, & |
119 |
dh(:, 1), dq(:, 1), precip_rain, precip_snow, rugos, rugoro, snow, & |
pplay(:, 1), paprs(:, 1), radsol, evap, flux_t, fluxlat, dflux_l, & |
120 |
qsurf, ts, pplay(:, 1), paprs(:, 1), radsol, evap, flux_t, fluxlat, & |
dflux_s, tsurf_new, albedo, z0_new, pctsrf_new_sic, agesno, & |
121 |
dflux_l, dflux_s, tsurf_new, albedo, z0_new, pctsrf_new_sic, agesno, & |
fqcalving, ffonte, run_off_lic_0, run_off_lic) |
|
fqcalving, ffonte, run_off_lic_0) |
|
122 |
flux_q = - evap |
flux_q = - evap |
123 |
d_ts = tsurf_new - ts |
d_ts = tsurf_new - ts |
124 |
call climb_hq_up(d_t, d_q, cq, dq, ch, dh, flux_t, flux_q, dtphys, pkf, t, & |
call climb_hq_up(d_t, d_q, cq, dq, ch, dh, flux_t, flux_q, pkf, t, q) |
|
q) |
|
125 |
|
|
126 |
END SUBROUTINE clqh |
END SUBROUTINE clqh |
127 |
|
|