15 |
|
|
16 |
contains |
contains |
17 |
|
|
18 |
SUBROUTINE phyetat0(pctsrf, ftsol, ftsoil, qsurf, qsol, snow, albe, & |
SUBROUTINE phyetat0(pctsrf, ftsol, ftsoil, qsurf, qsol, fsnow, albe, & |
19 |
rain_fall, snow_fall, solsw, sollw, fder, radsol, frugs, agesno, zmea, & |
rain_fall, snow_fall, solsw, sollw, fder, radsol, frugs, agesno, zmea, & |
20 |
zstd, zsig, zgam, zthe, zpic, zval, t_ancien, q_ancien, ancien_ok, & |
zstd, zsig, zgam, zthe, zpic, zval, t_ancien, q_ancien, ancien_ok, & |
21 |
rnebcon, ratqs, clwcon, run_off_lic_0, sig1, w01, ncid_startphy) |
rnebcon, ratqs, clwcon, run_off_lic_0, sig1, w01, ncid_startphy) |
27 |
|
|
28 |
USE conf_gcm_m, ONLY: raz_date |
USE conf_gcm_m, ONLY: raz_date |
29 |
use dimphy, only: klev |
use dimphy, only: klev |
|
USE dimsoil, ONLY : nsoilmx |
|
30 |
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 |
31 |
use netcdf, only: nf90_global, nf90_inq_varid, NF90_NOERR, NF90_NOWRITE |
use netcdf, only: nf90_global, nf90_inq_varid, NF90_NOERR, NF90_NOWRITE |
32 |
use netcdf95, only: nf95_get_att, nf95_get_var, nf95_inq_varid, & |
use netcdf95, only: nf95_get_att, nf95_get_var, nf95_inq_varid, & |
34 |
|
|
35 |
REAL, intent(out):: pctsrf(:, :) ! (klon, nbsrf) |
REAL, intent(out):: pctsrf(:, :) ! (klon, nbsrf) |
36 |
REAL, intent(out):: ftsol(klon, nbsrf) |
REAL, intent(out):: ftsol(klon, nbsrf) |
37 |
REAL, intent(out):: ftsoil(klon, nsoilmx, nbsrf) |
REAL, intent(out):: ftsoil(:, :, :) ! (klon, nsoilmx, nbsrf) |
38 |
REAL, intent(out):: qsurf(klon, nbsrf) |
REAL, intent(out):: qsurf(klon, nbsrf) |
39 |
|
|
40 |
REAL, intent(out):: qsol(:) |
REAL, intent(out):: qsol(:) |
41 |
! (klon) column-density of water in soil, in kg m-2 |
! (klon) column-density of water in soil, in kg m-2 |
42 |
|
|
43 |
REAL, intent(out):: snow(klon, nbsrf) |
REAL, intent(out):: fsnow(klon, nbsrf) |
44 |
REAL, intent(out):: albe(klon, nbsrf) |
REAL, intent(out):: albe(klon, nbsrf) |
45 |
REAL, intent(out):: rain_fall(klon) |
REAL, intent(out):: rain_fall(klon) |
46 |
REAL, intent(out):: snow_fall(klon) |
REAL, intent(out):: snow_fall(klon) |
159 |
! Lecture de neige au sol: |
! Lecture de neige au sol: |
160 |
|
|
161 |
call NF95_INQ_VARID(ncid_startphy, "SNOW", varid) |
call NF95_INQ_VARID(ncid_startphy, "SNOW", varid) |
162 |
call nf95_get_var(ncid_startphy, varid, snow) |
call nf95_get_var(ncid_startphy, varid, fsnow) |
163 |
|
|
164 |
! Lecture de albedo au sol: |
! Lecture de albedo au sol: |
165 |
|
|