503 |
REAL ue_lay(klon, llm) ! transport zonal de l'energie a chaque niveau vert. |
REAL ue_lay(klon, llm) ! transport zonal de l'energie a chaque niveau vert. |
504 |
REAL uq_lay(klon, llm) ! transport zonal de l'eau a chaque niveau vert. |
REAL uq_lay(klon, llm) ! transport zonal de l'eau a chaque niveau vert. |
505 |
|
|
|
REAL zsto |
|
506 |
real date0 |
real date0 |
507 |
|
|
508 |
! Variables li\'ees au bilan d'\'energie et d'enthalpie : |
! Variables li\'ees au bilan d'\'energie et d'enthalpie : |
1324 |
ENDDO |
ENDDO |
1325 |
|
|
1326 |
CALL drag_noro(klon, llm, dtphys, paprs, play, zmea, zstd, zsig, zgam, & |
CALL drag_noro(klon, llm, dtphys, paprs, play, zmea, zstd, zsig, zgam, & |
1327 |
zthe, zpic, zval, igwd, idx, itest, t_seri, u_seri, v_seri, & |
zthe, zpic, zval, itest, t_seri, u_seri, v_seri, zulow, zvlow, & |
1328 |
zulow, zvlow, zustrdr, zvstrdr, d_t_oro, d_u_oro, d_v_oro) |
zustrdr, zvstrdr, d_t_oro, d_u_oro, d_v_oro) |
1329 |
|
|
1330 |
! ajout des tendances |
! ajout des tendances |
1331 |
DO k = 1, llm |
DO k = 1, llm |
1474 |
! Si c'est la fin, il faut conserver l'etat de redemarrage |
! Si c'est la fin, il faut conserver l'etat de redemarrage |
1475 |
IF (lafin) THEN |
IF (lafin) THEN |
1476 |
itau_phy = itau_phy + itap |
itau_phy = itau_phy + itap |
1477 |
CALL phyredem("restartphy.nc", rlat, rlon, pctsrf, ftsol, ftsoil, & |
CALL phyredem("restartphy.nc", pctsrf, ftsol, ftsoil, tslab, seaice, & |
1478 |
tslab, seaice, fqsurf, qsol, fsnow, falbe, falblw, fevap, & |
fqsurf, qsol, fsnow, falbe, falblw, fevap, rain_fall, snow_fall, & |
1479 |
rain_fall, snow_fall, solsw, sollw, dlw, radsol, frugs, & |
solsw, sollw, dlw, radsol, frugs, agesno, zmea, zstd, zsig, zgam, & |
1480 |
agesno, zmea, zstd, zsig, zgam, zthe, zpic, zval, t_ancien, & |
zthe, zpic, zval, t_ancien, q_ancien, rnebcon, ratqs, clwcon, & |
1481 |
q_ancien, rnebcon, ratqs, clwcon, run_off_lic_0, sig1, w01) |
run_off_lic_0, sig1, w01) |
1482 |
ENDIF |
ENDIF |
1483 |
|
|
1484 |
firstcal = .FALSE. |
firstcal = .FALSE. |
1493 |
USE histsync_m, ONLY: histsync |
USE histsync_m, ONLY: histsync |
1494 |
USE histwrite_m, ONLY: histwrite |
USE histwrite_m, ONLY: histwrite |
1495 |
|
|
1496 |
real zout |
integer i, itau_w ! pas de temps ecriture |
|
integer itau_w ! pas de temps ecriture |
|
1497 |
REAL zx_tmp_2d(iim, jjm + 1), zx_tmp_3d(iim, jjm + 1, llm) |
REAL zx_tmp_2d(iim, jjm + 1), zx_tmp_3d(iim, jjm + 1, llm) |
1498 |
|
|
1499 |
!-------------------------------------------------- |
!-------------------------------------------------- |
1501 |
IF (ok_instan) THEN |
IF (ok_instan) THEN |
1502 |
! Champs 2D: |
! Champs 2D: |
1503 |
|
|
|
zsto = dtphys * ecrit_ins |
|
|
zout = dtphys * ecrit_ins |
|
1504 |
itau_w = itau_phy + itap |
itau_w = itau_phy + itap |
1505 |
|
|
|
i = NINT(zout/zsto) |
|
1506 |
CALL gr_fi_ecrit(1, klon, iim, jjm + 1, pphis, zx_tmp_2d) |
CALL gr_fi_ecrit(1, klon, iim, jjm + 1, pphis, zx_tmp_2d) |
1507 |
CALL histwrite(nid_ins, "phis", itau_w, zx_tmp_2d) |
CALL histwrite(nid_ins, "phis", itau_w, zx_tmp_2d) |
1508 |
|
|
|
i = NINT(zout/zsto) |
|
1509 |
CALL gr_fi_ecrit(1, klon, iim, jjm + 1, airephy, zx_tmp_2d) |
CALL gr_fi_ecrit(1, klon, iim, jjm + 1, airephy, zx_tmp_2d) |
1510 |
CALL histwrite(nid_ins, "aire", itau_w, zx_tmp_2d) |
CALL histwrite(nid_ins, "aire", itau_w, zx_tmp_2d) |
1511 |
|
|