6 |
|
|
7 |
SUBROUTINE pbl_surface(pctsrf, t, q, u, v, julien, mu0, ftsol, cdmmax, & |
SUBROUTINE pbl_surface(pctsrf, t, q, u, v, julien, mu0, ftsol, cdmmax, & |
8 |
cdhmax, ftsoil, qsol, paprs, play, fsnow, fqsurf, falbe, fluxlat, & |
cdhmax, ftsoil, qsol, paprs, play, fsnow, fqsurf, falbe, fluxlat, & |
9 |
rain_fall, snow_fall, frugs, agesno, rugoro, d_t, d_q, d_u, d_v, d_ts, & |
rain_fall, snow_fall, frugs, agesno, rugoro, d_t, d_q, d_u, d_v, & |
10 |
flux_t, flux_q, flux_u, flux_v, cdragh, cdragm, q2, dflux_t, dflux_q, & |
flux_t, flux_q, flux_u, flux_v, cdragh, cdragm, q2, dflux_t, dflux_q, & |
11 |
coefh, t2m, q2m, u10m_srf, v10m_srf, pblh, capcl, oliqcl, cteicl, pblt, & |
coefh, t2m, q2m, u10m_srf, v10m_srf, pblh, capcl, oliqcl, cteicl, pblt, & |
12 |
therm, plcl, fqcalving, ffonte, run_off_lic_0, albsol, sollw, solsw, & |
therm, plcl, fqcalving, ffonte, run_off_lic_0, albsol, sollw, solsw, & |
34 |
USE histwrite_phy_m, ONLY: histwrite_phy |
USE histwrite_phy_m, ONLY: histwrite_phy |
35 |
USE indicesol, ONLY: epsfra, is_lic, is_oce, is_sic, is_ter, nbsrf |
USE indicesol, ONLY: epsfra, is_lic, is_oce, is_sic, is_ter, nbsrf |
36 |
USE interfoce_lim_m, ONLY: interfoce_lim |
USE interfoce_lim_m, ONLY: interfoce_lim |
37 |
use phyetat0_m, only: zmasq |
use phyetat0_m, only: masque |
38 |
use stdlevvar_m, only: stdlevvar |
use stdlevvar_m, only: stdlevvar |
39 |
USE suphec_m, ONLY: rd, rg, rsigma |
USE suphec_m, ONLY: rd, rg, rsigma |
40 |
use time_phylmdz, only: itap |
use time_phylmdz, only: itap |
41 |
|
|
42 |
REAL, INTENT(inout):: pctsrf(klon, nbsrf) |
REAL, INTENT(inout):: pctsrf(:, :) ! (klon, nbsrf) |
43 |
! pourcentages de surface de chaque maille |
! pourcentages de surface de chaque maille |
44 |
|
|
45 |
REAL, INTENT(IN):: t(klon, klev) ! temperature (K) |
REAL, INTENT(IN):: t(klon, klev) ! temperature (K) |
47 |
REAL, INTENT(IN):: u(klon, klev), v(klon, klev) ! vitesse |
REAL, INTENT(IN):: u(klon, klev), v(klon, klev) ! vitesse |
48 |
INTEGER, INTENT(IN):: julien ! jour de l'annee en cours |
INTEGER, INTENT(IN):: julien ! jour de l'annee en cours |
49 |
REAL, intent(in):: mu0(klon) ! cosinus de l'angle solaire zenithal |
REAL, intent(in):: mu0(klon) ! cosinus de l'angle solaire zenithal |
50 |
REAL, INTENT(IN):: ftsol(:, :) ! (klon, nbsrf) temp\'erature du sol (en K) |
|
51 |
|
REAL, INTENT(INout):: ftsol(:, :) ! (klon, nbsrf) |
52 |
|
! skin temperature of surface fraction, in K |
53 |
|
|
54 |
REAL, INTENT(IN):: cdmmax, cdhmax ! seuils cdrm, cdrh |
REAL, INTENT(IN):: cdmmax, cdhmax ! seuils cdrm, cdrh |
55 |
|
|
56 |
REAL, INTENT(inout):: ftsoil(klon, nsoilmx, nbsrf) |
REAL, INTENT(inout):: ftsoil(klon, nsoilmx, nbsrf) |
61 |
|
|
62 |
REAL, INTENT(IN):: paprs(klon, klev + 1) ! pression a intercouche (Pa) |
REAL, INTENT(IN):: paprs(klon, klev + 1) ! pression a intercouche (Pa) |
63 |
REAL, INTENT(IN):: play(klon, klev) ! pression au milieu de couche (Pa) |
REAL, INTENT(IN):: play(klon, klev) ! pression au milieu de couche (Pa) |
64 |
REAL, INTENT(inout):: fsnow(:, :) ! (klon, nbsrf) \'epaisseur neigeuse |
|
65 |
|
REAL, INTENT(inout):: fsnow(:, :) ! (klon, nbsrf) |
66 |
|
! column-density of mass of snow at the surface, in kg m-2 |
67 |
|
|
68 |
REAL, INTENT(inout):: fqsurf(klon, nbsrf) |
REAL, INTENT(inout):: fqsurf(klon, nbsrf) |
69 |
REAL, intent(inout):: falbe(klon, nbsrf) |
REAL, intent(inout):: falbe(klon, nbsrf) |
70 |
|
|
71 |
REAL, intent(out):: fluxlat(:, :) ! (klon, nbsrf) |
REAL, intent(out):: fluxlat(:, :) ! (klon, nbsrf) |
72 |
|
! flux de chaleur latente, en W m-2 |
73 |
|
|
74 |
REAL, intent(in):: rain_fall(klon) |
REAL, intent(in):: rain_fall(klon) |
75 |
! liquid water mass flux (kg / m2 / s), positive down |
! liquid water mass flux (kg / m2 / s), positive down |
78 |
! solid water mass flux (kg / m2 / s), positive down |
! solid water mass flux (kg / m2 / s), positive down |
79 |
|
|
80 |
REAL, intent(inout):: frugs(klon, nbsrf) ! longueur de rugosit\'e (en m) |
REAL, intent(inout):: frugs(klon, nbsrf) ! longueur de rugosit\'e (en m) |
81 |
real agesno(klon, nbsrf) |
real, intent(inout):: agesno(:, :) ! (klon, nbsrf) |
82 |
REAL, INTENT(IN):: rugoro(klon) |
REAL, INTENT(IN):: rugoro(klon) |
83 |
|
|
84 |
REAL, intent(out):: d_t(:, :), d_q(:, :) ! (klon, klev) |
REAL, intent(out):: d_t(:, :), d_q(:, :) ! (klon, klev) |
87 |
REAL, intent(out):: d_u(klon, klev), d_v(klon, klev) |
REAL, intent(out):: d_u(klon, klev), d_v(klon, klev) |
88 |
! changement pour "u" et "v" |
! changement pour "u" et "v" |
89 |
|
|
|
REAL, intent(out):: d_ts(:, :) ! (klon, nbsrf) variation of ftsol |
|
|
|
|
90 |
REAL, intent(out):: flux_t(klon, nbsrf) |
REAL, intent(out):: flux_t(klon, nbsrf) |
91 |
! flux de chaleur sensible (c_p T) (W / m2) (orientation positive |
! flux de chaleur sensible (c_p T) (W / m2) (orientation positive |
92 |
! vers le bas) à la surface |
! vers le bas) à la surface |
93 |
|
|
94 |
REAL, intent(out):: flux_q(klon, nbsrf) |
REAL, intent(out):: flux_q(klon, nbsrf) |
95 |
! flux de vapeur d'eau (kg / m2 / s) à la surface |
! flux de vapeur d'eau (kg / m2 / s) à la surface |
96 |
|
|
97 |
REAL, intent(out):: flux_u(:, :), flux_v(:, :) ! (klon, nbsrf) |
REAL, intent(out):: flux_u(:, :), flux_v(:, :) ! (klon, nbsrf) |
145 |
|
|
146 |
! Local: |
! Local: |
147 |
|
|
148 |
|
REAL d_ts(klon, nbsrf) ! variation of ftsol |
149 |
REAL fsollw(klon, nbsrf) ! bilan flux IR pour chaque sous-surface |
REAL fsollw(klon, nbsrf) ! bilan flux IR pour chaque sous-surface |
150 |
REAL fsolsw(klon, nbsrf) ! flux solaire absorb\'e pour chaque sous-surface |
REAL fsolsw(klon, nbsrf) ! flux solaire absorb\'e pour chaque sous-surface |
151 |
|
|
161 |
REAL yts(klon), ypctsrf(klon), yz0_new(klon) |
REAL yts(klon), ypctsrf(klon), yz0_new(klon) |
162 |
real yrugos(klon) ! longueur de rugosite (en m) |
real yrugos(klon) ! longueur de rugosite (en m) |
163 |
REAL yalb(klon) |
REAL yalb(klon) |
164 |
REAL snow(klon), yqsurf(klon), yagesno(klon) |
REAL snow(klon) ! column-density of mass of snow at the surface, in kg m-2 |
165 |
|
real yqsurf(klon), yagesno(klon) |
166 |
real yqsol(klon) ! column-density of water in soil, in kg m-2 |
real yqsol(klon) ! column-density of water in soil, in kg m-2 |
167 |
REAL yrain_fall(klon) ! liquid water mass flux (kg / m2 / s), positive down |
REAL yrain_fall(klon) ! liquid water mass flux (kg / m2 / s), positive down |
168 |
REAL ysnow_fall(klon) ! solid water mass flux (kg / m2 / s), positive down |
REAL ysnow_fall(klon) ! solid water mass flux (kg / m2 / s), positive down |
258 |
|
|
259 |
pctsrf_pot(:, is_ter) = pctsrf(:, is_ter) |
pctsrf_pot(:, is_ter) = pctsrf(:, is_ter) |
260 |
pctsrf_pot(:, is_lic) = pctsrf(:, is_lic) |
pctsrf_pot(:, is_lic) = pctsrf(:, is_lic) |
261 |
pctsrf_pot(:, is_oce) = 1. - zmasq |
pctsrf_pot(:, is_oce) = 1. - masque |
262 |
pctsrf_pot(:, is_sic) = 1. - zmasq |
pctsrf_pot(:, is_sic) = 1. - masque |
263 |
|
|
264 |
! Tester si c'est le moment de lire le fichier: |
! Tester si c'est le moment de lire le fichier: |
265 |
if (mod(itap - 1, lmt_pas) == 0) then |
if (mod(itap - 1, lmt_pas) == 0) then |
510 |
pctsrf(:, is_sic) = pctsrf_new_sic |
pctsrf(:, is_sic) = pctsrf_new_sic |
511 |
|
|
512 |
CALL histwrite_phy("run_off_lic", run_off_lic) |
CALL histwrite_phy("run_off_lic", run_off_lic) |
513 |
|
ftsol = ftsol + d_ts ! update surface temperature |
514 |
|
CALL histwrite_phy("dtsvdfo", d_ts(:, is_oce)) |
515 |
|
CALL histwrite_phy("dtsvdft", d_ts(:, is_ter)) |
516 |
|
CALL histwrite_phy("dtsvdfg", d_ts(:, is_lic)) |
517 |
|
CALL histwrite_phy("dtsvdfi", d_ts(:, is_sic)) |
518 |
|
|
519 |
END SUBROUTINE pbl_surface |
END SUBROUTINE pbl_surface |
520 |
|
|