--- trunk/Sources/phylmd/Interface_surf/interfsur_lim.f 2015/04/29 15:47:56 134 +++ trunk/Sources/phylmd/Interface_surf/interfsur_lim.f 2016/03/11 18:47:26 178 @@ -4,15 +4,13 @@ contains - SUBROUTINE interfsur_lim(itime, dtime, jour, nisurf, knindex, debut, & - alb_new, z0_new) + SUBROUTINE interfsur_lim(itime, dtime, jour, knindex, debut, albedo, z0_new) - ! Cette routine sert d'interface entre le modèle atmosphérique et + ! Cette routine sert d'interface entre le mod\`ele atmosph\'erique et ! un fichier de conditions aux limites. ! Laurent FAIRHEAD, February 2000 - use abort_gcm_m, only: abort_gcm USE dimphy, ONLY: klon use netcdf, only: NF90_NOWRITE use netcdf95, only: NF95_close, NF95_GET_VAR, NF95_INQ_VARID, NF95_OPEN @@ -21,16 +19,12 @@ real, intent(IN):: dtime ! pas de temps de la physique (en s) integer, intent(IN):: jour ! jour a lire dans l'annee - integer, intent(IN):: nisurf - ! index de la surface à traiter (1 = sol continental) - - integer, intent(in):: knindex(:) ! (knon) - ! index des points de la surface à traiter + ! index des points de la surface \`a traiter - logical, intent(IN):: debut ! premier appel à la physique (initialisation) - real, intent(out):: alb_new(:) ! (klon) albedo lu - real, intent(out):: z0_new(:) ! (klon) longueur de rugosité lue + logical, intent(IN):: debut ! premier appel \`a la physique (initialisation) + real, intent(out):: albedo(:) ! (knon) albedo lu + real, intent(out):: z0_new(:) ! (klon) longueur de rugosit\'e lue ! Local: @@ -40,7 +34,7 @@ ! (en pas de physique) logical, save:: deja_lu_sur - ! jour à lire déjà lu pour une surface précédente + ! jour \`a lire d\'ej\`a lu pour une surface pr\'ec\'edente integer, save:: jour_lu_sur @@ -70,7 +64,7 @@ call NF95_INQ_VARID(ncid, 'ALB', varid) call NF95_GET_VAR(ncid, varid, alb_lu, start=(/1, jour/)) - ! Lecture rugosité + ! Lecture rugosit\'e call NF95_INQ_VARID(ncid, 'RUG', varid) call NF95_GET_VAR(ncid, varid, rug_lu, start=(/1, jour/)) @@ -80,9 +74,8 @@ endif ! Recopie des variables dans les champs de sortie - alb_new(:knon) = alb_lu(knindex(:knon)) - z0_new(:knon) = rug_lu(knindex(:knon)) - alb_new(knon + 1:) = 999999. + albedo = alb_lu(knindex) + z0_new(:knon) = rug_lu(knindex) z0_new(knon + 1:) = 999999. END SUBROUTINE interfsur_lim