20 |
use calltherm_m, only: calltherm |
use calltherm_m, only: calltherm |
21 |
USE clesphys, ONLY: cdhmax, cdmmax, ecrit_ins, ok_instan |
USE clesphys, ONLY: cdhmax, cdmmax, ecrit_ins, ok_instan |
22 |
USE clesphys2, ONLY: conv_emanuel, nbapp_rad, new_oliq, ok_orodr, ok_orolf |
USE clesphys2, ONLY: conv_emanuel, nbapp_rad, new_oliq, ok_orodr, ok_orolf |
23 |
USE clmain_m, ONLY: clmain |
USE pbl_surface_m, ONLY: pbl_surface |
24 |
use clouds_gno_m, only: clouds_gno |
use clouds_gno_m, only: clouds_gno |
25 |
use comconst, only: dtphys |
use comconst, only: dtphys |
26 |
USE comgeomphy, ONLY: airephy |
USE comgeomphy, ONLY: airephy |
187 |
REAL, save:: ffonte(klon, nbsrf) |
REAL, save:: ffonte(klon, nbsrf) |
188 |
! flux thermique utilise pour fondre la neige |
! flux thermique utilise pour fondre la neige |
189 |
|
|
190 |
REAL, save:: fqcalving(klon, nbsrf) |
REAL fqcalving(klon, nbsrf) |
191 |
! flux d'eau "perdue" par la surface et necessaire pour limiter la |
! flux d'eau "perdue" par la surface et n\'ecessaire pour limiter |
192 |
! hauteur de neige, en kg / m2 / s |
! la hauteur de neige, en kg / m2 / s |
193 |
|
|
194 |
REAL zxffonte(klon), zxfqcalving(klon) |
REAL zxffonte(klon) |
195 |
|
|
196 |
REAL, save:: pfrac_impa(klon, llm)! Produits des coefs lessivage impaction |
REAL, save:: pfrac_impa(klon, llm)! Produits des coefs lessivage impaction |
197 |
REAL, save:: pfrac_nucl(klon, llm)! Produits des coefs lessivage nucleation |
REAL, save:: pfrac_nucl(klon, llm)! Produits des coefs lessivage nucleation |
417 |
t2m = 0. |
t2m = 0. |
418 |
q2m = 0. |
q2m = 0. |
419 |
ffonte = 0. |
ffonte = 0. |
|
fqcalving = 0. |
|
420 |
rain_con = 0. |
rain_con = 0. |
421 |
snow_con = 0. |
snow_con = 0. |
422 |
d_u_con = 0. |
d_u_con = 0. |
469 |
rugoro = 0. |
rugoro = 0. |
470 |
ENDIF |
ENDIF |
471 |
|
|
|
ecrit_ins = NINT(ecrit_ins / dtphys) |
|
|
|
|
472 |
! Initialisation des sorties |
! Initialisation des sorties |
|
|
|
473 |
call ini_histins(dtphys, ok_newmicro) |
call ini_histins(dtphys, ok_newmicro) |
474 |
CALL phyredem0 |
CALL phyredem0 |
475 |
ENDIF test_firstcal |
ENDIF test_firstcal |
549 |
fsolsw(:, nsrf) = solsw * (1. - falbe(:, nsrf)) / (1. - albsol) |
fsolsw(:, nsrf) = solsw * (1. - falbe(:, nsrf)) / (1. - albsol) |
550 |
END forall |
END forall |
551 |
|
|
552 |
CALL clmain(dtphys, pctsrf, t_seri, q_seri, u_seri, v_seri, julien, mu0, & |
CALL pbl_surface(dtphys, pctsrf, t_seri, q_seri, u_seri, v_seri, julien, & |
553 |
ftsol, cdmmax, cdhmax, ftsoil, qsol, paprs, play, fsnow, fqsurf, & |
mu0, ftsol, cdmmax, cdhmax, ftsoil, qsol, paprs, play, fsnow, fqsurf, & |
554 |
fevap, falbe, fluxlat, rain_fall, snow_fall, fsolsw, fsollw, frugs, & |
fevap, falbe, fluxlat, rain_fall, snow_fall, fsolsw, fsollw, frugs, & |
555 |
agesno, rugoro, d_t_vdf, d_q_vdf, d_u_vdf, d_v_vdf, d_ts, flux_t, & |
agesno, rugoro, d_t_vdf, d_q_vdf, d_u_vdf, d_v_vdf, d_ts, flux_t, & |
556 |
flux_q, flux_u, flux_v, cdragh, cdragm, q2, dsens, devap, coefh, t2m, & |
flux_q, flux_u, flux_v, cdragh, cdragm, q2, dsens, devap, coefh, t2m, & |
583 |
u10m = sum(u10m_srf * pctsrf, dim = 2) |
u10m = sum(u10m_srf * pctsrf, dim = 2) |
584 |
v10m = sum(v10m_srf * pctsrf, dim = 2) |
v10m = sum(v10m_srf * pctsrf, dim = 2) |
585 |
zxffonte = sum(ffonte * pctsrf, dim = 2) |
zxffonte = sum(ffonte * pctsrf, dim = 2) |
|
zxfqcalving = sum(fqcalving * pctsrf, dim = 2) |
|
586 |
s_pblh = sum(pblh * pctsrf, dim = 2) |
s_pblh = sum(pblh * pctsrf, dim = 2) |
587 |
s_lcl = sum(plcl * pctsrf, dim = 2) |
s_lcl = sum(plcl * pctsrf, dim = 2) |
588 |
s_capCL = sum(capCL * pctsrf, dim = 2) |
s_capCL = sum(capCL * pctsrf, dim = 2) |
601 |
u10m_srf(i, nsrf) = u10m(i) |
u10m_srf(i, nsrf) = u10m(i) |
602 |
v10m_srf(i, nsrf) = v10m(i) |
v10m_srf(i, nsrf) = v10m(i) |
603 |
ffonte(i, nsrf) = zxffonte(i) |
ffonte(i, nsrf) = zxffonte(i) |
|
fqcalving(i, nsrf) = zxfqcalving(i) |
|
604 |
pblh(i, nsrf) = s_pblh(i) |
pblh(i, nsrf) = s_pblh(i) |
605 |
plcl(i, nsrf) = s_lcl(i) |
plcl(i, nsrf) = s_lcl(i) |
606 |
capCL(i, nsrf) = s_capCL(i) |
capCL(i, nsrf) = s_capCL(i) |
1007 |
CALL histwrite_phy("dtsvdft", d_ts(:, is_ter)) |
CALL histwrite_phy("dtsvdft", d_ts(:, is_ter)) |
1008 |
CALL histwrite_phy("dtsvdfg", d_ts(:, is_lic)) |
CALL histwrite_phy("dtsvdfg", d_ts(:, is_lic)) |
1009 |
CALL histwrite_phy("dtsvdfi", d_ts(:, is_sic)) |
CALL histwrite_phy("dtsvdfi", d_ts(:, is_sic)) |
1010 |
|
CALL histwrite_phy("zxfqcalving", sum(fqcalving * pctsrf, dim = 2)) |
1011 |
|
|
1012 |
DO nsrf = 1, nbsrf |
DO nsrf = 1, nbsrf |
1013 |
CALL histwrite_phy("pourc_"//clnsurf(nsrf), pctsrf(:, nsrf) * 100.) |
CALL histwrite_phy("pourc_"//clnsurf(nsrf), pctsrf(:, nsrf) * 100.) |