4 |
|
|
5 |
contains |
contains |
6 |
|
|
7 |
SUBROUTINE clqh(dtime, itime, date0, jour, debut, lafin, rlon, rlat, cufi, & |
SUBROUTINE clqh(dtime, itime, jour, debut, rlat, knon, nisurf, knindex, & |
8 |
cvfi, knon, nisurf, knindex, pctsrf, soil_model, tsoil, qsol, & |
pctsrf, soil_model, tsoil, qsol, ok_veget, ocean, rmu0, co2_ppm, & |
9 |
ok_veget, ocean, npas, nexca, rmu0, co2_ppm, rugos, rugoro, u1lay, & |
rugos, rugoro, u1lay, v1lay, coef, t, q, ts, paprs, pplay, delp, & |
10 |
v1lay, coef, t, q, ts, paprs, pplay, delp, radsol, albedo, alblw, & |
radsol, albedo, alblw, snow, qsurf, precip_rain, precip_snow, fder, & |
11 |
snow, qsurf, precip_rain, precip_snow, fder, taux, tauy, ywindsp, & |
swnet, fluxlat, pctsrf_new, agesno, d_t, d_q, d_ts, z0_new, flux_t, & |
12 |
sollw, sollwdown, swnet, fluxlat, pctsrf_new, agesno, d_t, d_q, d_ts, & |
flux_q, dflux_s, dflux_l, fqcalving, ffonte, run_off_lic_0, flux_o, & |
13 |
z0_new, flux_t, flux_q, dflux_s, dflux_l, fqcalving, ffonte, & |
flux_g, tslab, seaice) |
|
run_off_lic_0, flux_o, flux_g, tslab, seaice) |
|
14 |
|
|
15 |
! Author: Z. X. Li (LMD/CNRS) |
! Author: Z. X. Li (LMD/CNRS) |
16 |
! Date: 1993/08/18 |
! Date: 1993/08/18 |
27 |
! Arguments: |
! Arguments: |
28 |
INTEGER, intent(in):: knon |
INTEGER, intent(in):: knon |
29 |
REAL, intent(in):: dtime ! intervalle du temps (s) |
REAL, intent(in):: dtime ! intervalle du temps (s) |
|
real, intent(in):: date0 |
|
30 |
REAL u1lay(klon) ! vitesse u de la 1ere couche (m/s) |
REAL u1lay(klon) ! vitesse u de la 1ere couche (m/s) |
31 |
REAL v1lay(klon) ! vitesse v de la 1ere couche (m/s) |
REAL v1lay(klon) ! vitesse v de la 1ere couche (m/s) |
32 |
|
|
56 |
real rugos(klon) ! rugosite |
real rugos(klon) ! rugosite |
57 |
integer knindex(klon) |
integer knindex(klon) |
58 |
real, intent(in):: pctsrf(klon, nbsrf) |
real, intent(in):: pctsrf(klon, nbsrf) |
59 |
real, intent(in):: rlon(klon), rlat(klon) |
real, intent(in):: rlat(klon) |
|
real cufi(klon), cvfi(klon) |
|
60 |
logical ok_veget |
logical ok_veget |
61 |
REAL co2_ppm ! taux CO2 atmosphere |
REAL co2_ppm ! taux CO2 atmosphere |
62 |
character(len=*), intent(in):: ocean |
character(len=*), intent(in):: ocean |
|
integer npas, nexca |
|
|
! -- LOOP |
|
|
REAL yu10mx(klon) |
|
|
REAL yu10my(klon) |
|
|
REAL ywindsp(klon) |
|
|
! -- LOOP |
|
63 |
|
|
64 |
REAL d_t(klon, klev) ! incrementation de "t" |
REAL d_t(klon, klev) ! incrementation de "t" |
65 |
REAL d_q(klon, klev) ! incrementation de "q" |
REAL d_q(klon, klev) ! incrementation de "q" |
82 |
REAL flux_o(klon) ! flux entre l'ocean et l'atmosphere W/m2 |
REAL flux_o(klon) ! flux entre l'ocean et l'atmosphere W/m2 |
83 |
REAL flux_g(klon) ! flux entre l'ocean et la glace de mer W/m2 |
REAL flux_g(klon) ! flux entre l'ocean et la glace de mer W/m2 |
84 |
|
|
|
REAL t_grnd ! temperature de rappel pour glace de mer |
|
|
PARAMETER (t_grnd=271.35) |
|
|
REAL t_coup |
|
|
PARAMETER(t_coup=273.15) |
|
|
|
|
85 |
INTEGER i, k |
INTEGER i, k |
86 |
REAL zx_cq(klon, klev) |
REAL zx_cq(klon, klev) |
87 |
REAL zx_dq(klon, klev) |
REAL zx_dq(klon, klev) |
107 |
integer, intent(in):: itime |
integer, intent(in):: itime |
108 |
integer nisurf |
integer nisurf |
109 |
logical, intent(in):: debut |
logical, intent(in):: debut |
|
logical, intent(in):: lafin |
|
110 |
real zlev1(klon) |
real zlev1(klon) |
111 |
real fder(klon), taux(klon), tauy(klon) |
real fder(klon) |
112 |
real temp_air(klon), spechum(klon) |
real temp_air(klon), spechum(klon) |
113 |
real epot_air(klon), ccanopy(klon) |
real epot_air(klon), ccanopy(klon) |
114 |
real tq_cdrag(klon), petAcoef(klon), peqAcoef(klon) |
real tq_cdrag(klon), petAcoef(klon), peqAcoef(klon) |
115 |
real petBcoef(klon), peqBcoef(klon) |
real petBcoef(klon), peqBcoef(klon) |
116 |
real sollw(klon), sollwdown(klon), swnet(klon), swdown(klon) |
real swnet(klon), swdown(klon) |
117 |
real p1lay(klon) |
real p1lay(klon) |
118 |
!$$$C PB ajout pour soil |
!$$$C PB ajout pour soil |
119 |
LOGICAL, intent(in):: soil_model |
LOGICAL, intent(in):: soil_model |
122 |
|
|
123 |
! Parametres de sortie |
! Parametres de sortie |
124 |
real fluxsens(klon), fluxlat(klon) |
real fluxsens(klon), fluxlat(klon) |
125 |
real tsol_rad(klon), tsurf_new(klon), alb_new(klon) |
real tsurf_new(klon), alb_new(klon) |
126 |
real emis_new(klon), z0_new(klon) |
real z0_new(klon) |
127 |
real pctsrf_new(klon, nbsrf) |
real pctsrf_new(klon, nbsrf) |
128 |
! JLD |
! JLD |
129 |
real zzpk |
real zzpk |
273 |
endif |
endif |
274 |
ccanopy = co2_ppm |
ccanopy = co2_ppm |
275 |
|
|
276 |
CALL interfsurf_hq(itime, dtime, date0, jour, rmu0, & |
CALL interfsurf_hq(itime, dtime, jour, rmu0, klon, iim, jjm, & |
277 |
klon, iim, jjm, nisurf, knon, knindex, pctsrf, & |
nisurf, knon, knindex, pctsrf, rlat, debut, & |
278 |
rlon, rlat, cufi, cvfi, & |
ok_veget, soil_model, nsoilmx, tsoil, qsol, u1lay, v1lay, & |
279 |
debut, lafin, ok_veget, soil_model, nsoilmx, tsoil, qsol, & |
temp_air, spechum, tq_cdrag, petAcoef, peqAcoef, & |
280 |
zlev1, u1lay, v1lay, temp_air, spechum, epot_air, ccanopy, & |
petBcoef, peqBcoef, precip_rain, precip_snow, & |
281 |
tq_cdrag, petAcoef, peqAcoef, petBcoef, peqBcoef, & |
fder, rugos, rugoro, & |
282 |
precip_rain, precip_snow, sollw, sollwdown, swnet, swdown, & |
snow, qsurf, ts, p1lay, psref, radsol, ocean, & |
283 |
fder, taux, tauy, & |
evap, fluxsens, fluxlat, dflux_l, dflux_s, tsurf_new, & |
284 |
ywindsp, rugos, rugoro, & |
alb_new, alblw, z0_new, pctsrf_new, agesno, fqcalving, & |
285 |
albedo, snow, qsurf, & |
ffonte, run_off_lic_0, flux_o, flux_g, tslab, seaice) |
|
ts, p1lay, psref, radsol, & |
|
|
ocean, npas, nexca, zmasq, & |
|
|
evap, fluxsens, fluxlat, dflux_l, dflux_s, & |
|
|
tsol_rad, tsurf_new, alb_new, alblw, emis_new, z0_new, & |
|
|
pctsrf_new, agesno, fqcalving, ffonte, run_off_lic_0, & |
|
|
flux_o, flux_g, tslab, seaice) |
|
286 |
|
|
287 |
do i = 1, knon |
do i = 1, knon |
288 |
flux_t(i, 1) = fluxsens(i) |
flux_t(i, 1) = fluxsens(i) |