7 |
SUBROUTINE clqh(dtime, itime, jour, debut, rlat, knon, nisurf, knindex, & |
SUBROUTINE clqh(dtime, itime, jour, debut, rlat, knon, nisurf, knindex, & |
8 |
pctsrf, tsoil, qsol, rmu0, co2_ppm, rugos, rugoro, u1lay, v1lay, coef, & |
pctsrf, tsoil, qsol, rmu0, co2_ppm, rugos, rugoro, u1lay, v1lay, coef, & |
9 |
t, q, ts, paprs, pplay, delp, radsol, albedo, snow, qsurf, & |
t, q, ts, paprs, pplay, delp, radsol, albedo, snow, qsurf, & |
10 |
precip_rain, precip_snow, fder, swnet, fluxlat, pctsrf_new, agesno, & |
precip_rain, precip_snow, fder, fluxlat, pctsrf_new, agesno, d_t, d_q, & |
11 |
d_t, d_q, d_ts, z0_new, flux_t, flux_q, dflux_s, dflux_l, fqcalving, & |
d_ts, z0_new, flux_t, flux_q, dflux_s, dflux_l, fqcalving, ffonte, & |
12 |
ffonte, run_off_lic_0, flux_o, flux_g) |
run_off_lic_0) |
13 |
|
|
14 |
! Author: Z. X. Li (LMD/CNRS) |
! Author: Z. X. Li (LMD/CNRS) |
15 |
! Date: 1993/08/18 |
! Date: 1993/08/18 |
29 |
logical, intent(in):: debut |
logical, intent(in):: debut |
30 |
real, intent(in):: rlat(klon) |
real, intent(in):: rlat(klon) |
31 |
INTEGER, intent(in):: knon |
INTEGER, intent(in):: knon |
32 |
integer nisurf |
integer, intent(in):: nisurf |
33 |
integer, intent(in):: knindex(:) ! (knon) |
integer, intent(in):: knindex(:) ! (knon) |
34 |
real, intent(in):: pctsrf(klon, nbsrf) |
real, intent(in):: pctsrf(klon, nbsrf) |
35 |
REAL tsoil(klon, nsoilmx) |
REAL tsoil(klon, nsoilmx) |
67 |
! solid water mass flux (kg / m2 / s), positive down |
! solid water mass flux (kg / m2 / s), positive down |
68 |
|
|
69 |
real, intent(inout):: fder(klon) |
real, intent(inout):: fder(klon) |
|
real swnet(klon) |
|
70 |
real fluxlat(klon) |
real fluxlat(klon) |
71 |
real pctsrf_new(klon, nbsrf) |
real pctsrf_new(klon, nbsrf) |
72 |
REAL, intent(inout):: agesno(klon) |
REAL, intent(inout):: agesno(:) ! (knon) |
73 |
REAL d_t(klon, klev) ! incrementation de "t" |
REAL d_t(klon, klev) ! incrementation de "t" |
74 |
REAL d_q(klon, klev) ! incrementation de "q" |
REAL d_q(klon, klev) ! incrementation de "q" |
75 |
REAL, intent(out):: d_ts(:) ! (knon) incrementation de "ts" |
REAL, intent(out):: d_ts(:) ! (knon) incrementation de "ts" |
90 |
|
|
91 |
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 |
92 |
|
|
|
!IM "slab" ocean |
|
|
|
|
|
REAL, intent(out):: flux_o(klon) ! flux entre l'ocean et l'atmosphere W / m2 |
|
|
|
|
|
REAL, intent(out):: flux_g(klon) |
|
|
! flux entre l'ocean et la glace de mer W / m2 |
|
|
|
|
93 |
! Local: |
! Local: |
94 |
|
|
95 |
REAL evap(klon) ! evaporation au sol |
REAL evap(klon) ! evaporation au sol |
120 |
real epot_air(klon), ccanopy(klon) |
real epot_air(klon), ccanopy(klon) |
121 |
real tq_cdrag(klon), petAcoef(klon), peqAcoef(klon) |
real tq_cdrag(klon), petAcoef(klon), peqAcoef(klon) |
122 |
real petBcoef(klon), peqBcoef(klon) |
real petBcoef(klon), peqBcoef(klon) |
|
real swdown(klon) |
|
123 |
real p1lay(klon) |
real p1lay(klon) |
124 |
|
|
125 |
real fluxsens(klon) |
real fluxsens(klon) |
249 |
p1lay(1:knon) = pplay(1:knon, 1) |
p1lay(1:knon) = pplay(1:knon, 1) |
250 |
zlev1(1:knon) = delp(1:knon, 1) |
zlev1(1:knon) = delp(1:knon, 1) |
251 |
|
|
|
if(nisurf == is_ter) THEN |
|
|
swdown(:knon) = swnet(:knon) / (1 - albedo) |
|
|
else |
|
|
swdown(:knon) = swnet(:knon) |
|
|
endif |
|
252 |
ccanopy = co2_ppm |
ccanopy = co2_ppm |
253 |
|
|
254 |
CALL interfsurf_hq(itime, dtime, jour, rmu0, nisurf, knon, knindex, & |
CALL interfsurf_hq(itime, dtime, jour, rmu0, nisurf, knon, knindex, & |
257 |
precip_rain, precip_snow, fder, rugos, rugoro, snow, qsurf, & |
precip_rain, precip_snow, fder, rugos, rugoro, snow, qsurf, & |
258 |
ts(:knon), p1lay, psref, radsol, evap, fluxsens, fluxlat, dflux_l, & |
ts(:knon), p1lay, psref, radsol, evap, fluxsens, fluxlat, dflux_l, & |
259 |
dflux_s, tsurf_new, albedo, z0_new, pctsrf_new, agesno, fqcalving, & |
dflux_s, tsurf_new, albedo, z0_new, pctsrf_new, agesno, fqcalving, & |
260 |
ffonte, run_off_lic_0, flux_o, flux_g) |
ffonte, run_off_lic_0) |
261 |
|
|
262 |
flux_t(:knon, 1) = fluxsens(:knon) |
flux_t(:knon, 1) = fluxsens(:knon) |
263 |
flux_q(:knon, 1) = - evap(:knon) |
flux_q(:knon, 1) = - evap(:knon) |