5 |
contains |
contains |
6 |
|
|
7 |
SUBROUTINE clqh(dtime, itime, jour, debut, rlat, knon, nisurf, knindex, & |
SUBROUTINE clqh(dtime, itime, jour, debut, rlat, knon, nisurf, knindex, & |
8 |
pctsrf, soil_model, tsoil, qsol, ok_veget, ocean, rmu0, co2_ppm, & |
pctsrf, tsoil, qsol, rmu0, co2_ppm, rugos, rugoro, u1lay, & |
9 |
rugos, rugoro, u1lay, v1lay, coef, t, q, ts, paprs, pplay, delp, & |
v1lay, coef, t, q, ts, paprs, pplay, delp, radsol, albedo, alblw, & |
10 |
radsol, albedo, alblw, snow, qsurf, precip_rain, precip_snow, fder, & |
snow, qsurf, precip_rain, precip_snow, fder, swnet, fluxlat, & |
11 |
swnet, fluxlat, pctsrf_new, agesno, d_t, d_q, d_ts, z0_new, flux_t, & |
pctsrf_new, agesno, d_t, d_q, d_ts, z0_new, flux_t, flux_q, dflux_s, & |
12 |
flux_q, dflux_s, dflux_l, fqcalving, ffonte, run_off_lic_0, flux_o, & |
dflux_l, fqcalving, ffonte, run_off_lic_0, flux_o, flux_g) |
|
flux_g, tslab, seaice) |
|
13 |
|
|
14 |
! Author: Z. X. Li (LMD/CNRS) |
! Author: Z. X. Li (LMD/CNRS) |
15 |
! Date: 1993/08/18 |
! Date: 1993/08/18 |
36 |
|
|
37 |
REAL t(klon, klev) ! temperature (K) |
REAL t(klon, klev) ! temperature (K) |
38 |
REAL q(klon, klev) ! humidite specifique (kg/kg) |
REAL q(klon, klev) ! humidite specifique (kg/kg) |
39 |
REAL ts(klon) ! temperature du sol (K) |
REAL, intent(in):: ts(klon) ! temperature du sol (K) |
40 |
REAL evap(klon) ! evaporation au sol |
REAL evap(klon) ! evaporation au sol |
41 |
REAL paprs(klon, klev+1) ! pression a inter-couche (Pa) |
REAL paprs(klon, klev+1) ! pression a inter-couche (Pa) |
42 |
REAL pplay(klon, klev) ! pression au milieu de couche (Pa) |
REAL pplay(klon, klev) ! pression au milieu de couche (Pa) |
46 |
REAL alblw(klon) |
REAL alblw(klon) |
47 |
REAL snow(klon) ! hauteur de neige |
REAL snow(klon) ! hauteur de neige |
48 |
REAL qsurf(klon) ! humidite de l'air au dessus de la surface |
REAL qsurf(klon) ! humidite de l'air au dessus de la surface |
49 |
real precip_rain(klon), precip_snow(klon) |
|
50 |
|
real, intent(in):: precip_rain(klon) |
51 |
|
! liquid water mass flux (kg/m2/s), positive down |
52 |
|
|
53 |
|
real, intent(in):: precip_snow(klon) |
54 |
|
! solid water mass flux (kg/m2/s), positive down |
55 |
|
|
56 |
REAL agesno(klon) |
REAL agesno(klon) |
57 |
REAL rugoro(klon) |
REAL rugoro(klon) |
58 |
REAL run_off_lic_0(klon)! runof glacier au pas de temps precedent |
REAL run_off_lic_0(klon)! runof glacier au pas de temps precedent |
59 |
integer, intent(in):: jour ! jour de l'annee en cours |
integer, intent(in):: jour ! jour de l'annee en cours |
60 |
real, intent(in):: rmu0(klon) ! cosinus de l'angle solaire zenithal |
real, intent(in):: rmu0(klon) ! cosinus de l'angle solaire zenithal |
61 |
real rugos(klon) ! rugosite |
real rugos(klon) ! rugosite |
62 |
integer knindex(klon) |
integer, intent(in):: knindex(:) ! (knon) |
63 |
real, intent(in):: pctsrf(klon, nbsrf) |
real, intent(in):: pctsrf(klon, nbsrf) |
64 |
real, intent(in):: rlat(klon) |
real, intent(in):: rlat(klon) |
65 |
logical ok_veget |
REAL, intent(in):: co2_ppm ! taux CO2 atmosphere |
|
REAL co2_ppm ! taux CO2 atmosphere |
|
|
character(len=*), intent(in):: ocean |
|
66 |
|
|
67 |
REAL d_t(klon, klev) ! incrementation de "t" |
REAL d_t(klon, klev) ! incrementation de "t" |
68 |
REAL d_q(klon, klev) ! incrementation de "q" |
REAL d_q(klon, klev) ! incrementation de "q" |
69 |
REAL d_ts(klon) ! incrementation de "ts" |
REAL, intent(out):: d_ts(:) ! (knon) incrementation de "ts" |
70 |
REAL flux_t(klon, klev) ! (diagnostic) flux de la chaleur |
REAL flux_t(klon, klev) ! (diagnostic) flux de la chaleur |
71 |
! sensible, flux de Cp*T, positif vers |
! sensible, flux de Cp*T, positif vers |
72 |
! le bas: j/(m**2 s) c.a.d.: W/m2 |
! le bas: j/(m**2 s) c.a.d.: W/m2 |
79 |
! Flux d'eau "perdue" par la surface et nécessaire pour que limiter la |
! Flux d'eau "perdue" par la surface et nécessaire pour que limiter la |
80 |
! hauteur de neige, en kg/m2/s |
! hauteur de neige, en kg/m2/s |
81 |
REAL fqcalving(klon) |
REAL fqcalving(klon) |
82 |
|
|
83 |
!IM "slab" ocean |
!IM "slab" ocean |
84 |
REAL tslab(klon) !temperature du slab ocean (K) (OCEAN='slab ') |
|
85 |
REAL seaice(klon) ! glace de mer en kg/m2 |
REAL, intent(out):: flux_o(klon) ! flux entre l'ocean et l'atmosphere W/m2 |
86 |
REAL flux_o(klon) ! flux entre l'ocean et l'atmosphere W/m2 |
|
87 |
REAL flux_g(klon) ! flux entre l'ocean et la glace de mer W/m2 |
REAL, intent(out):: flux_g(klon) |
88 |
|
! flux entre l'ocean et la glace de mer W/m2 |
89 |
|
|
90 |
INTEGER i, k |
INTEGER i, k |
91 |
REAL zx_cq(klon, klev) |
REAL zx_cq(klon, klev) |
121 |
real swnet(klon), swdown(klon) |
real swnet(klon), swdown(klon) |
122 |
real p1lay(klon) |
real p1lay(klon) |
123 |
!$$$C PB ajout pour soil |
!$$$C PB ajout pour soil |
|
LOGICAL, intent(in):: soil_model |
|
124 |
REAL tsoil(klon, nsoilmx) |
REAL tsoil(klon, nsoilmx) |
125 |
REAL qsol(klon) |
|
126 |
|
REAL, intent(inout):: qsol(klon) |
127 |
|
! column-density of water in soil, in kg m-2 |
128 |
|
|
129 |
! Parametres de sortie |
! Parametres de sortie |
130 |
real fluxsens(klon), fluxlat(klon) |
real fluxsens(klon), fluxlat(klon) |
131 |
real tsurf_new(klon), alb_new(klon) |
real tsurf_new(knon), alb_new(klon) |
132 |
real z0_new(klon) |
real z0_new(klon) |
133 |
real pctsrf_new(klon, nbsrf) |
real pctsrf_new(klon, nbsrf) |
134 |
! JLD |
! JLD |
279 |
endif |
endif |
280 |
ccanopy = co2_ppm |
ccanopy = co2_ppm |
281 |
|
|
282 |
CALL interfsurf_hq(itime, dtime, jour, rmu0, klon, iim, jjm, & |
CALL interfsurf_hq(itime, dtime, jour, rmu0, nisurf, knon, knindex, & |
283 |
nisurf, knon, knindex, pctsrf, rlat, debut, & |
pctsrf, rlat, debut, nsoilmx, tsoil, qsol, u1lay, v1lay, temp_air, & |
284 |
ok_veget, soil_model, nsoilmx, tsoil, qsol, u1lay, v1lay, & |
spechum, tq_cdrag, petAcoef, peqAcoef, petBcoef, peqBcoef, & |
285 |
temp_air, spechum, tq_cdrag, petAcoef, peqAcoef, & |
precip_rain, precip_snow, fder, rugos, rugoro, snow, qsurf, & |
286 |
petBcoef, peqBcoef, precip_rain, precip_snow, & |
ts(:knon), p1lay, psref, radsol, evap, fluxsens, fluxlat, dflux_l, & |
287 |
fder, rugos, rugoro, & |
dflux_s, tsurf_new, alb_new, alblw, z0_new, pctsrf_new, agesno, & |
288 |
snow, qsurf, ts, p1lay, psref, radsol, ocean, & |
fqcalving, ffonte, run_off_lic_0, flux_o, flux_g) |
|
evap, fluxsens, fluxlat, dflux_l, dflux_s, tsurf_new, & |
|
|
alb_new, alblw, z0_new, pctsrf_new, agesno, fqcalving, & |
|
|
ffonte, run_off_lic_0, flux_o, flux_g, tslab, seaice) |
|
289 |
|
|
290 |
do i = 1, knon |
do i = 1, knon |
291 |
flux_t(i, 1) = fluxsens(i) |
flux_t(i, 1) = fluxsens(i) |