20 |
use calltherm_m, only: calltherm |
use calltherm_m, only: calltherm |
21 |
USE clesphys, ONLY: cdhmax, cdmmax, ecrit_ins, ksta, ksta_ter, ok_kzmin, & |
USE clesphys, ONLY: cdhmax, cdmmax, ecrit_ins, ksta, ksta_ter, ok_kzmin, & |
22 |
ok_instan |
ok_instan |
23 |
USE clesphys2, ONLY: cycle_diurne, conv_emanuel, nbapp_rad, new_oliq, & |
USE clesphys2, ONLY: conv_emanuel, nbapp_rad, new_oliq, ok_orodr, ok_orolf |
|
ok_orodr, ok_orolf |
|
24 |
USE clmain_m, ONLY: clmain |
USE clmain_m, ONLY: clmain |
25 |
use clouds_gno_m, only: clouds_gno |
use clouds_gno_m, only: clouds_gno |
26 |
use comconst, only: dtphys |
use comconst, only: dtphys |
27 |
USE comgeomphy, ONLY: airephy |
USE comgeomphy, ONLY: airephy |
28 |
USE concvl_m, ONLY: concvl |
USE concvl_m, ONLY: concvl |
29 |
USE conf_gcm_m, ONLY: offline, day_step, iphysiq, lmt_pas |
USE conf_gcm_m, ONLY: offline, lmt_pas |
30 |
USE conf_phys_m, ONLY: conf_phys |
USE conf_phys_m, ONLY: conf_phys |
31 |
use conflx_m, only: conflx |
use conflx_m, only: conflx |
32 |
USE ctherm, ONLY: iflag_thermals, nsplit_thermals |
USE ctherm, ONLY: iflag_thermals, nsplit_thermals |
36 |
USE dimsoil, ONLY: nsoilmx |
USE dimsoil, ONLY: nsoilmx |
37 |
use drag_noro_m, only: drag_noro |
use drag_noro_m, only: drag_noro |
38 |
use dynetat0_m, only: day_ref, annee_ref |
use dynetat0_m, only: day_ref, annee_ref |
39 |
USE fcttre, ONLY: foeew, qsatl, qsats, thermcep |
USE fcttre, ONLY: foeew, qsatl, qsats |
40 |
use fisrtilp_m, only: fisrtilp |
use fisrtilp_m, only: fisrtilp |
41 |
USE hgardfou_m, ONLY: hgardfou |
USE hgardfou_m, ONLY: hgardfou |
42 |
USE histsync_m, ONLY: histsync |
USE histsync_m, ONLY: histsync |
145 |
! "physiq". |
! "physiq". |
146 |
|
|
147 |
REAL, save:: radsol(klon) ! bilan radiatif au sol calcule par code radiatif |
REAL, save:: radsol(klon) ! bilan radiatif au sol calcule par code radiatif |
|
|
|
148 |
REAL, save:: ftsol(klon, nbsrf) ! skin temperature of surface fraction |
REAL, save:: ftsol(klon, nbsrf) ! skin temperature of surface fraction |
149 |
|
|
150 |
REAL, save:: ftsoil(klon, nsoilmx, nbsrf) |
REAL, save:: ftsoil(klon, nsoilmx, nbsrf) |
217 |
|
|
218 |
REAL rain_tiedtke(klon), snow_tiedtke(klon) |
REAL rain_tiedtke(klon), snow_tiedtke(klon) |
219 |
|
|
220 |
REAL evap(klon), devap(klon) ! evaporation and its derivative |
REAL evap(klon) ! flux d'\'evaporation au sol |
221 |
REAL sens(klon), dsens(klon) ! chaleur sensible et sa derivee |
real devap(klon) ! derivative of the evaporation flux at the surface |
222 |
|
REAL sens(klon) ! flux de chaleur sensible au sol |
223 |
|
real dsens(klon) ! derivee du flux de chaleur sensible au sol |
224 |
REAL, save:: dlw(klon) ! derivee infra rouge |
REAL, save:: dlw(klon) ! derivee infra rouge |
225 |
REAL bils(klon) ! bilan de chaleur au sol |
REAL bils(klon) ! bilan de chaleur au sol |
226 |
REAL, save:: fder(klon) ! Derive de flux (sensible et latente) |
REAL, save:: fder(klon) ! Derive de flux (sensible et latente) |
250 |
REAL cldtau(klon, llm) ! epaisseur optique |
REAL cldtau(klon, llm) ! epaisseur optique |
251 |
REAL cldemi(klon, llm) ! emissivite infrarouge |
REAL cldemi(klon, llm) ! emissivite infrarouge |
252 |
|
|
253 |
REAL fluxq(klon, llm, nbsrf) ! flux turbulent d'humidite |
REAL flux_q(klon, nbsrf) ! flux turbulent d'humidite à la surface |
254 |
REAL fluxt(klon, llm, nbsrf) ! flux turbulent de chaleur |
REAL flux_t(klon, nbsrf) ! flux turbulent de chaleur à la surface |
255 |
REAL fluxu(klon, llm, nbsrf) ! flux turbulent de vitesse u |
REAL flux_u(klon, nbsrf) ! flux turbulent de vitesse u à la surface |
256 |
REAL fluxv(klon, llm, nbsrf) ! flux turbulent de vitesse v |
REAL flux_v(klon, nbsrf) ! flux turbulent de vitesse v à la surface |
|
|
|
|
REAL zxfluxt(klon, llm) |
|
|
REAL zxfluxq(klon, llm) |
|
|
REAL zxfluxu(klon, llm) |
|
|
REAL zxfluxv(klon, llm) |
|
257 |
|
|
258 |
! Le rayonnement n'est pas calcul\'e tous les pas, il faut donc que |
! Le rayonnement n'est pas calcul\'e tous les pas, il faut donc que |
259 |
! les variables soient r\'emanentes. |
! les variables soient r\'emanentes. |
284 |
REAL zx_t, zx_qs, zcor |
REAL zx_t, zx_qs, zcor |
285 |
real zqsat(klon, llm) |
real zqsat(klon, llm) |
286 |
INTEGER i, k, iq, nsrf |
INTEGER i, k, iq, nsrf |
|
REAL, PARAMETER:: t_coup = 234. |
|
287 |
REAL zphi(klon, llm) |
REAL zphi(klon, llm) |
288 |
|
|
289 |
! cf. Anne Mathieu, variables pour la couche limite atmosphérique (hbtm) |
! cf. Anne Mathieu, variables pour la couche limite atmosphérique (hbtm) |
293 |
REAL, SAVE:: capCL(klon, nbsrf) ! CAPE de couche limite |
REAL, SAVE:: capCL(klon, nbsrf) ! CAPE de couche limite |
294 |
REAL, SAVE:: oliqCL(klon, nbsrf) ! eau_liqu integree de couche limite |
REAL, SAVE:: oliqCL(klon, nbsrf) ! eau_liqu integree de couche limite |
295 |
REAL, SAVE:: cteiCL(klon, nbsrf) ! cloud top instab. crit. couche limite |
REAL, SAVE:: cteiCL(klon, nbsrf) ! cloud top instab. crit. couche limite |
296 |
REAL, SAVE:: pblt(klon, nbsrf) ! T a la Hauteur de couche limite |
REAL, SAVE:: pblt(klon, nbsrf) ! T \`a la hauteur de couche limite |
297 |
REAL, SAVE:: therm(klon, nbsrf) |
REAL, SAVE:: therm(klon, nbsrf) |
298 |
REAL, SAVE:: trmb1(klon, nbsrf) ! deep_cape |
REAL, SAVE:: trmb1(klon, nbsrf) ! deep_cape |
299 |
REAL, SAVE:: trmb2(klon, nbsrf) ! inhibition |
REAL, SAVE:: trmb2(klon, nbsrf) ! inhibition |
308 |
|
|
309 |
REAL upwd(klon, llm) ! saturated updraft mass flux |
REAL upwd(klon, llm) ! saturated updraft mass flux |
310 |
REAL dnwd(klon, llm) ! saturated downdraft mass flux |
REAL dnwd(klon, llm) ! saturated downdraft mass flux |
|
REAL dnwd0(klon, llm) ! unsaturated downdraft mass flux |
|
311 |
REAL, save:: cape(klon) |
REAL, save:: cape(klon) |
312 |
|
|
313 |
INTEGER iflagctrl(klon) ! flag fonctionnement de convect |
INTEGER iflagctrl(klon) ! flag fonctionnement de convect |
394 |
! temperature and humidity at 2 m |
! temperature and humidity at 2 m |
395 |
|
|
396 |
REAL, save:: u10m(klon, nbsrf), v10m(klon, nbsrf) ! vents a 10 m |
REAL, save:: u10m(klon, nbsrf), v10m(klon, nbsrf) ! vents a 10 m |
397 |
REAL zt2m(klon), zq2m(klon) ! temp., hum. 2 m moyenne s/ 1 maille |
REAL zt2m(klon), zq2m(klon) ! température, humidité 2 m moyenne sur 1 maille |
398 |
REAL zu10m(klon), zv10m(klon) ! vents a 10 m moyennes s/1 maille |
REAL zu10m(klon), zv10m(klon) ! vents a 10 m moyennes sur 1 maille |
399 |
|
|
400 |
! Aerosol effects: |
! Aerosol effects: |
401 |
|
|
469 |
capCL =0. ! CAPE de couche limite |
capCL =0. ! CAPE de couche limite |
470 |
oliqCL =0. ! eau_liqu integree de couche limite |
oliqCL =0. ! eau_liqu integree de couche limite |
471 |
cteiCL =0. ! cloud top instab. crit. couche limite |
cteiCL =0. ! cloud top instab. crit. couche limite |
472 |
pblt =0. ! T a la Hauteur de couche limite |
pblt =0. |
473 |
therm =0. |
therm =0. |
474 |
trmb1 =0. ! deep_cape |
trmb1 =0. ! deep_cape |
475 |
trmb2 =0. ! inhibition |
trmb2 =0. ! inhibition |
588 |
! la surface. |
! la surface. |
589 |
|
|
590 |
CALL orbite(REAL(julien), longi, dist) |
CALL orbite(REAL(julien), longi, dist) |
591 |
IF (cycle_diurne) THEN |
CALL zenang(longi, time, dtphys * radpas, mu0, fract) |
|
CALL zenang(longi, time, dtphys * radpas, mu0, fract) |
|
|
ELSE |
|
|
mu0 = - 999.999 |
|
|
ENDIF |
|
592 |
|
|
593 |
! Calcul de l'abedo moyen par maille |
! Calcul de l'abedo moyen par maille |
594 |
albsol = sum(falbe * pctsrf, dim = 2) |
albsol = sum(falbe * pctsrf, dim = 2) |
604 |
|
|
605 |
fder = dlw |
fder = dlw |
606 |
|
|
|
! Couche limite: |
|
|
|
|
607 |
CALL clmain(dtphys, pctsrf, t_seri, q_seri, u_seri, v_seri, julien, mu0, & |
CALL clmain(dtphys, pctsrf, t_seri, q_seri, u_seri, v_seri, julien, mu0, & |
608 |
ftsol, cdmmax, cdhmax, ksta, ksta_ter, ok_kzmin, ftsoil, qsol, & |
ftsol, cdmmax, cdhmax, ksta, ksta_ter, ok_kzmin, ftsoil, qsol, & |
609 |
paprs, play, fsnow, fqsurf, fevap, falbe, fluxlat, rain_fall, & |
paprs, play, fsnow, fqsurf, fevap, falbe, fluxlat, rain_fall, & |
610 |
snow_fall, fsolsw, fsollw, fder, rlat, frugs, agesno, rugoro, & |
snow_fall, fsolsw, fsollw, fder, frugs, agesno, rugoro, d_t_vdf, & |
611 |
d_t_vdf, d_q_vdf, d_u_vdf, d_v_vdf, d_ts, fluxt, fluxq, fluxu, & |
d_q_vdf, d_u_vdf, d_v_vdf, d_ts, flux_t, flux_q, flux_u, flux_v, & |
612 |
fluxv, cdragh, cdragm, q2, dsens, devap, ycoefh, yu1, yv1, t2m, q2m, & |
cdragh, cdragm, q2, dsens, devap, ycoefh, yu1, yv1, t2m, q2m, u10m, & |
613 |
u10m, v10m, pblh, capCL, oliqCL, cteiCL, pblT, therm, trmb1, trmb2, & |
v10m, pblh, capCL, oliqCL, cteiCL, pblT, therm, trmb1, trmb2, trmb3, & |
614 |
trmb3, plcl, fqcalving, ffonte, run_off_lic_0) |
plcl, fqcalving, ffonte, run_off_lic_0) |
615 |
|
|
616 |
! Incr\'ementation des flux |
! Incr\'ementation des flux |
617 |
|
|
618 |
zxfluxt = 0. |
sens = - sum(flux_t * pctsrf, dim = 2) |
619 |
zxfluxq = 0. |
evap = - sum(flux_q * pctsrf, dim = 2) |
620 |
zxfluxu = 0. |
fder = dlw + dsens + devap |
|
zxfluxv = 0. |
|
|
DO nsrf = 1, nbsrf |
|
|
DO k = 1, llm |
|
|
DO i = 1, klon |
|
|
zxfluxt(i, k) = zxfluxt(i, k) + fluxt(i, k, nsrf) * pctsrf(i, nsrf) |
|
|
zxfluxq(i, k) = zxfluxq(i, k) + fluxq(i, k, nsrf) * pctsrf(i, nsrf) |
|
|
zxfluxu(i, k) = zxfluxu(i, k) + fluxu(i, k, nsrf) * pctsrf(i, nsrf) |
|
|
zxfluxv(i, k) = zxfluxv(i, k) + fluxv(i, k, nsrf) * pctsrf(i, nsrf) |
|
|
END DO |
|
|
END DO |
|
|
END DO |
|
|
DO i = 1, klon |
|
|
sens(i) = - zxfluxt(i, 1) ! flux de chaleur sensible au sol |
|
|
evap(i) = - zxfluxq(i, 1) ! flux d'\'evaporation au sol |
|
|
fder(i) = dlw(i) + dsens(i) + devap(i) |
|
|
ENDDO |
|
621 |
|
|
622 |
DO k = 1, llm |
DO k = 1, llm |
623 |
DO i = 1, klon |
DO i = 1, klon |
630 |
|
|
631 |
! Update surface temperature: |
! Update surface temperature: |
632 |
|
|
|
DO i = 1, klon |
|
|
zxfluxlat(i) = 0. |
|
|
|
|
|
zt2m(i) = 0. |
|
|
zq2m(i) = 0. |
|
|
zu10m(i) = 0. |
|
|
zv10m(i) = 0. |
|
|
zxffonte(i) = 0. |
|
|
zxfqcalving(i) = 0. |
|
|
|
|
|
s_pblh(i) = 0. |
|
|
s_lcl(i) = 0. |
|
|
s_capCL(i) = 0. |
|
|
s_oliqCL(i) = 0. |
|
|
s_cteiCL(i) = 0. |
|
|
s_pblT(i) = 0. |
|
|
s_therm(i) = 0. |
|
|
s_trmb1(i) = 0. |
|
|
s_trmb2(i) = 0. |
|
|
s_trmb3(i) = 0. |
|
|
ENDDO |
|
|
|
|
633 |
call assert(abs(sum(pctsrf, dim = 2) - 1.) <= EPSFRA, 'physiq: pctsrf') |
call assert(abs(sum(pctsrf, dim = 2) - 1.) <= EPSFRA, 'physiq: pctsrf') |
|
|
|
634 |
ftsol = ftsol + d_ts |
ftsol = ftsol + d_ts |
635 |
ztsol = sum(ftsol * pctsrf, dim = 2) |
ztsol = sum(ftsol * pctsrf, dim = 2) |
636 |
DO nsrf = 1, nbsrf |
zxfluxlat = sum(fluxlat * pctsrf, dim = 2) |
637 |
DO i = 1, klon |
zt2m = sum(t2m * pctsrf, dim = 2) |
638 |
zxfluxlat(i) = zxfluxlat(i) + fluxlat(i, nsrf) * pctsrf(i, nsrf) |
zq2m = sum(q2m * pctsrf, dim = 2) |
639 |
|
zu10m = sum(u10m * pctsrf, dim = 2) |
640 |
zt2m(i) = zt2m(i) + t2m(i, nsrf) * pctsrf(i, nsrf) |
zv10m = sum(v10m * pctsrf, dim = 2) |
641 |
zq2m(i) = zq2m(i) + q2m(i, nsrf) * pctsrf(i, nsrf) |
zxffonte = sum(ffonte * pctsrf, dim = 2) |
642 |
zu10m(i) = zu10m(i) + u10m(i, nsrf) * pctsrf(i, nsrf) |
zxfqcalving = sum(fqcalving * pctsrf, dim = 2) |
643 |
zv10m(i) = zv10m(i) + v10m(i, nsrf) * pctsrf(i, nsrf) |
s_pblh = sum(pblh * pctsrf, dim = 2) |
644 |
zxffonte(i) = zxffonte(i) + ffonte(i, nsrf) * pctsrf(i, nsrf) |
s_lcl = sum(plcl * pctsrf, dim = 2) |
645 |
zxfqcalving(i) = zxfqcalving(i) + & |
s_capCL = sum(capCL * pctsrf, dim = 2) |
646 |
fqcalving(i, nsrf) * pctsrf(i, nsrf) |
s_oliqCL = sum(oliqCL * pctsrf, dim = 2) |
647 |
s_pblh(i) = s_pblh(i) + pblh(i, nsrf) * pctsrf(i, nsrf) |
s_cteiCL = sum(cteiCL * pctsrf, dim = 2) |
648 |
s_lcl(i) = s_lcl(i) + plcl(i, nsrf) * pctsrf(i, nsrf) |
s_pblT = sum(pblT * pctsrf, dim = 2) |
649 |
s_capCL(i) = s_capCL(i) + capCL(i, nsrf) * pctsrf(i, nsrf) |
s_therm = sum(therm * pctsrf, dim = 2) |
650 |
s_oliqCL(i) = s_oliqCL(i) + oliqCL(i, nsrf) * pctsrf(i, nsrf) |
s_trmb1 = sum(trmb1 * pctsrf, dim = 2) |
651 |
s_cteiCL(i) = s_cteiCL(i) + cteiCL(i, nsrf) * pctsrf(i, nsrf) |
s_trmb2 = sum(trmb2 * pctsrf, dim = 2) |
652 |
s_pblT(i) = s_pblT(i) + pblT(i, nsrf) * pctsrf(i, nsrf) |
s_trmb3 = sum(trmb3 * pctsrf, dim = 2) |
|
s_therm(i) = s_therm(i) + therm(i, nsrf) * pctsrf(i, nsrf) |
|
|
s_trmb1(i) = s_trmb1(i) + trmb1(i, nsrf) * pctsrf(i, nsrf) |
|
|
s_trmb2(i) = s_trmb2(i) + trmb2(i, nsrf) * pctsrf(i, nsrf) |
|
|
s_trmb3(i) = s_trmb3(i) + trmb3(i, nsrf) * pctsrf(i, nsrf) |
|
|
ENDDO |
|
|
ENDDO |
|
653 |
|
|
654 |
! Si une sous-fraction n'existe pas, elle prend la valeur moyenne : |
! Si une sous-fraction n'existe pas, elle prend la valeur moyenne : |
655 |
DO nsrf = 1, nbsrf |
DO nsrf = 1, nbsrf |
687 |
if (conv_emanuel) then |
if (conv_emanuel) then |
688 |
CALL concvl(paprs, play, t_seri, q_seri, u_seri, v_seri, sig1, w01, & |
CALL concvl(paprs, play, t_seri, q_seri, u_seri, v_seri, sig1, w01, & |
689 |
d_t_con, d_q_con, d_u_con, d_v_con, rain_con, ibas_con, itop_con, & |
d_t_con, d_q_con, d_u_con, d_v_con, rain_con, ibas_con, itop_con, & |
690 |
upwd, dnwd, dnwd0, Ma, cape, iflagctrl, qcondc, pmflxr, da, phi, mp) |
upwd, dnwd, Ma, cape, iflagctrl, qcondc, pmflxr, da, phi, mp) |
691 |
snow_con = 0. |
snow_con = 0. |
692 |
clwcon0 = qcondc |
clwcon0 = qcondc |
693 |
mfu = upwd + dnwd |
mfu = upwd + dnwd |
694 |
|
|
695 |
IF (thermcep) THEN |
zqsat = MIN(0.5, r2es * FOEEW(t_seri, rtt >= t_seri) / play) |
696 |
zqsat = MIN(0.5, r2es * FOEEW(t_seri, rtt >= t_seri) / play) |
zqsat = zqsat / (1. - retv * zqsat) |
|
zqsat = zqsat / (1. - retv * zqsat) |
|
|
ELSE |
|
|
zqsat = merge(qsats(t_seri), qsatl(t_seri), t_seri < t_coup) / play |
|
|
ENDIF |
|
697 |
|
|
698 |
! Properties of convective clouds |
! Properties of convective clouds |
699 |
clwcon0 = fact_cldcon * clwcon0 |
clwcon0 = fact_cldcon * clwcon0 |
711 |
conv_t = d_t_dyn + d_t_vdf / dtphys |
conv_t = d_t_dyn + d_t_vdf / dtphys |
712 |
z_avant = sum((q_seri + ql_seri) * zmasse, dim=2) |
z_avant = sum((q_seri + ql_seri) * zmasse, dim=2) |
713 |
CALL conflx(dtphys, paprs, play, t_seri(:, llm:1:- 1), & |
CALL conflx(dtphys, paprs, play, t_seri(:, llm:1:- 1), & |
714 |
q_seri(:, llm:1:- 1), conv_t, conv_q, zxfluxq(:, 1), omega, & |
q_seri(:, llm:1:- 1), conv_t, conv_q, - evap, omega, & |
715 |
d_t_con, d_q_con, rain_con, snow_con, mfu(:, llm:1:- 1), & |
d_t_con, d_q_con, rain_con, snow_con, mfu(:, llm:1:- 1), & |
716 |
mfd(:, llm:1:- 1), pen_u, pde_u, pen_d, pde_d, kcbot, kctop, & |
mfd(:, llm:1:- 1), pen_u, pde_u, pen_d, pde_d, kcbot, kctop, & |
717 |
kdtop, pmflxr, pmflxs) |
kdtop, pmflxr, pmflxs) |
893 |
DO k = 1, llm |
DO k = 1, llm |
894 |
DO i = 1, klon |
DO i = 1, klon |
895 |
zx_t = t_seri(i, k) |
zx_t = t_seri(i, k) |
896 |
IF (thermcep) THEN |
zx_qs = r2es * FOEEW(zx_t, rtt >= zx_t) / play(i, k) |
897 |
zx_qs = r2es * FOEEW(zx_t, rtt >= zx_t) / play(i, k) |
zx_qs = MIN(0.5, zx_qs) |
898 |
zx_qs = MIN(0.5, zx_qs) |
zcor = 1. / (1. - retv * zx_qs) |
899 |
zcor = 1. / (1. - retv * zx_qs) |
zx_qs = zx_qs * zcor |
|
zx_qs = zx_qs * zcor |
|
|
ELSE |
|
|
IF (zx_t < t_coup) THEN |
|
|
zx_qs = qsats(zx_t) / play(i, k) |
|
|
ELSE |
|
|
zx_qs = qsatl(zx_t) / play(i, k) |
|
|
ENDIF |
|
|
ENDIF |
|
900 |
zx_rh(i, k) = q_seri(i, k) / zx_qs |
zx_rh(i, k) = q_seri(i, k) / zx_qs |
901 |
zqsat(i, k) = zx_qs |
zqsat(i, k) = zx_qs |
902 |
ENDDO |
ENDDO |
934 |
ENDIF |
ENDIF |
935 |
|
|
936 |
! Ajouter la tendance des rayonnements (tous les pas) |
! Ajouter la tendance des rayonnements (tous les pas) |
|
|
|
937 |
DO k = 1, llm |
DO k = 1, llm |
938 |
DO i = 1, klon |
DO i = 1, klon |
939 |
t_seri(i, k) = t_seri(i, k) + (heat(i, k) - cool(i, k)) * dtphys & |
t_seri(i, k) = t_seri(i, k) + (heat(i, k) - cool(i, k)) * dtphys & |
942 |
ENDDO |
ENDDO |
943 |
|
|
944 |
! Calculer l'hydrologie de la surface |
! Calculer l'hydrologie de la surface |
945 |
DO i = 1, klon |
zxqsurf = sum(fqsurf * pctsrf, dim = 2) |
946 |
zxqsurf(i) = 0. |
zxsnow = sum(fsnow * pctsrf, dim = 2) |
|
zxsnow(i) = 0. |
|
|
ENDDO |
|
|
DO nsrf = 1, nbsrf |
|
|
DO i = 1, klon |
|
|
zxqsurf(i) = zxqsurf(i) + fqsurf(i, nsrf) * pctsrf(i, nsrf) |
|
|
zxsnow(i) = zxsnow(i) + fsnow(i, nsrf) * pctsrf(i, nsrf) |
|
|
ENDDO |
|
|
ENDDO |
|
947 |
|
|
948 |
! Calculer le bilan du sol et la d\'erive de temp\'erature (couplage) |
! Calculer le bilan du sol et la d\'erive de temp\'erature (couplage) |
|
|
|
949 |
DO i = 1, klon |
DO i = 1, klon |
950 |
bils(i) = radsol(i) - sens(i) + zxfluxlat(i) |
bils(i) = radsol(i) - sens(i) + zxfluxlat(i) |
951 |
ENDDO |
ENDDO |
1119 |
DO nsrf = 1, nbsrf |
DO nsrf = 1, nbsrf |
1120 |
CALL histwrite_phy("pourc_"//clnsurf(nsrf), pctsrf(:, nsrf) * 100.) |
CALL histwrite_phy("pourc_"//clnsurf(nsrf), pctsrf(:, nsrf) * 100.) |
1121 |
CALL histwrite_phy("fract_"//clnsurf(nsrf), pctsrf(:, nsrf)) |
CALL histwrite_phy("fract_"//clnsurf(nsrf), pctsrf(:, nsrf)) |
1122 |
CALL histwrite_phy("sens_"//clnsurf(nsrf), fluxt(:, 1, nsrf)) |
CALL histwrite_phy("sens_"//clnsurf(nsrf), flux_t(:, nsrf)) |
1123 |
CALL histwrite_phy("lat_"//clnsurf(nsrf), fluxlat(:, nsrf)) |
CALL histwrite_phy("lat_"//clnsurf(nsrf), fluxlat(:, nsrf)) |
1124 |
CALL histwrite_phy("tsol_"//clnsurf(nsrf), ftsol(:, nsrf)) |
CALL histwrite_phy("tsol_"//clnsurf(nsrf), ftsol(:, nsrf)) |
1125 |
CALL histwrite_phy("taux_"//clnsurf(nsrf), fluxu(:, 1, nsrf)) |
CALL histwrite_phy("taux_"//clnsurf(nsrf), flux_u(:, nsrf)) |
1126 |
CALL histwrite_phy("tauy_"//clnsurf(nsrf), fluxv(:, 1, nsrf)) |
CALL histwrite_phy("tauy_"//clnsurf(nsrf), flux_v(:, nsrf)) |
1127 |
CALL histwrite_phy("rugs_"//clnsurf(nsrf), frugs(:, nsrf)) |
CALL histwrite_phy("rugs_"//clnsurf(nsrf), frugs(:, nsrf)) |
1128 |
CALL histwrite_phy("albe_"//clnsurf(nsrf), falbe(:, nsrf)) |
CALL histwrite_phy("albe_"//clnsurf(nsrf), falbe(:, nsrf)) |
1129 |
END DO |
END DO |
1140 |
CALL histwrite_phy("s_trmb1", s_trmb1) |
CALL histwrite_phy("s_trmb1", s_trmb1) |
1141 |
CALL histwrite_phy("s_trmb2", s_trmb2) |
CALL histwrite_phy("s_trmb2", s_trmb2) |
1142 |
CALL histwrite_phy("s_trmb3", s_trmb3) |
CALL histwrite_phy("s_trmb3", s_trmb3) |
1143 |
if (conv_emanuel) CALL histwrite_phy("ptop", ema_pct) |
|
1144 |
|
if (conv_emanuel) then |
1145 |
|
CALL histwrite_phy("ptop", ema_pct) |
1146 |
|
CALL histwrite_phy("dnwd0", - mp) |
1147 |
|
end if |
1148 |
|
|
1149 |
CALL histwrite_phy("temp", t_seri) |
CALL histwrite_phy("temp", t_seri) |
1150 |
CALL histwrite_phy("vitu", u_seri) |
CALL histwrite_phy("vitu", u_seri) |
1151 |
CALL histwrite_phy("vitv", v_seri) |
CALL histwrite_phy("vitv", v_seri) |