13 |
contains |
contains |
14 |
|
|
15 |
SUBROUTINE phyetat0(pctsrf, tsol, tsoil, tslab, seaice, qsurf, qsol, & |
SUBROUTINE phyetat0(pctsrf, tsol, tsoil, tslab, seaice, qsurf, qsol, & |
16 |
snow, albe, alblw, evap, rain_fall, snow_fall, solsw, sollw, fder, & |
snow, albe, evap, rain_fall, snow_fall, solsw, sollw, fder, & |
17 |
radsol, frugs, agesno, zmea, zstd, zsig, zgam, zthe, zpic, zval, & |
radsol, frugs, agesno, zmea, zstd, zsig, zgam, zthe, zpic, zval, & |
18 |
t_ancien, q_ancien, ancien_ok, rnebcon, ratqs, clwcon, run_off_lic_0, & |
t_ancien, q_ancien, ancien_ok, rnebcon, ratqs, clwcon, run_off_lic_0, & |
19 |
sig1, w01) |
sig1, w01) |
40 |
REAL, intent(out):: qsol(:) ! (klon) |
REAL, intent(out):: qsol(:) ! (klon) |
41 |
REAL snow(klon, nbsrf) |
REAL snow(klon, nbsrf) |
42 |
REAL albe(klon, nbsrf) |
REAL albe(klon, nbsrf) |
|
REAL alblw(klon, nbsrf) |
|
43 |
REAL evap(klon, nbsrf) |
REAL evap(klon, nbsrf) |
44 |
REAL, intent(out):: rain_fall(klon) |
REAL, intent(out):: rain_fall(klon) |
45 |
REAL snow_fall(klon) |
REAL snow_fall(klon) |
308 |
ENDDO |
ENDDO |
309 |
ENDDO |
ENDDO |
310 |
ENDIF |
ENDIF |
|
|
|
|
! Lecture de albedo au sol LW: |
|
|
|
|
|
ierr = NF90_INQ_VARID(ncid, "ALBLW", varid) |
|
|
IF (ierr /= NF90_NOERR) THEN |
|
|
PRINT *, 'phyetat0: Le champ <ALBLW> est absent' |
|
|
! PRINT *, ' Mais je vais essayer de lire ALBLW**' |
|
|
PRINT *, ' Mais je vais prendre ALBE**' |
|
|
DO nsrf = 1, nbsrf |
|
|
DO i = 1, klon |
|
|
alblw(i, nsrf) = albe(i, nsrf) |
|
|
ENDDO |
|
|
ENDDO |
|
|
ELSE |
|
|
PRINT *, 'phyetat0: Le champ <ALBLW> est present' |
|
|
PRINT *, ' J ignore donc les autres ALBLW**' |
|
|
call nf95_get_var(ncid, varid, alblw(:, 1)) |
|
|
xmin = 1.0E+20 |
|
|
xmax = -1.0E+20 |
|
|
DO i = 1, klon |
|
|
xmin = MIN(alblw(i, 1), xmin) |
|
|
xmax = MAX(alblw(i, 1), xmax) |
|
|
ENDDO |
|
|
PRINT *, 'Neige du sol <ALBLW>', xmin, xmax |
|
|
DO nsrf = 2, nbsrf |
|
|
DO i = 1, klon |
|
|
alblw(i, nsrf) = alblw(i, 1) |
|
|
ENDDO |
|
|
ENDDO |
|
|
ENDIF |
|
311 |
|
|
312 |
! Lecture de evaporation: |
! Lecture de evaporation: |
313 |
|
|