/[lmdze]/trunk/phylmd/Interface_surf/interfsurf_hq.f
ViewVC logotype

Diff of /trunk/phylmd/Interface_surf/interfsurf_hq.f

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 178 by guez, Fri Mar 11 18:47:26 2016 UTC revision 191 by guez, Mon May 9 19:56:28 2016 UTC
# Line 4  module interfsurf_hq_m Line 4  module interfsurf_hq_m
4    
5  contains  contains
6    
7    SUBROUTINE interfsurf_hq(itime, dtime, jour, rmu0, nisurf, knon, knindex, &    SUBROUTINE interfsurf_hq(dtime, jour, rmu0, nisurf, knon, knindex, pctsrf, &
8         pctsrf, rlat, debut, nsoilmx, tsoil, qsol, u1_lay, v1_lay, temp_air, &         rlat, debut, nsoilmx, tsoil, qsol, u1_lay, v1_lay, temp_air, spechum, &
9         spechum, tq_cdrag, petAcoef, peqAcoef, petBcoef, peqBcoef, &         tq_cdrag, petAcoef, peqAcoef, petBcoef, peqBcoef, precip_rain, &
10         precip_rain, precip_snow, fder, rugos, rugoro, snow, qsurf, tsurf, &         precip_snow, fder, rugos, rugoro, snow, qsurf, tsurf, p1lay, ps, &
11         p1lay, ps, radsol, evap, fluxsens, fluxlat, dflux_l, dflux_s, &         radsol, evap, fluxsens, fluxlat, dflux_l, dflux_s, tsurf_new, albedo, &
12         tsurf_new, albedo, z0_new, pctsrf_new, agesno, fqcalving, ffonte, &         z0_new, pctsrf_new, agesno, fqcalving, ffonte, run_off_lic_0)
        run_off_lic_0)  
13    
14      ! Cette routine sert d'aiguillage entre l'atmosph\`ere et la surface      ! Cette routine sert d'aiguillage entre l'atmosph\`ere et la surface
15      ! en g\'en\'eral (sols continentaux, oc\'eans, glaces) pour les flux de      ! en g\'en\'eral (sols continentaux, oc\'eans, glaces) pour les flux de
# Line 34  contains Line 33  contains
33      use soil_m, only: soil      use soil_m, only: soil
34      USE suphec_m, ONLY: rcpd, rtt      USE suphec_m, ONLY: rcpd, rtt
35    
     integer, intent(IN):: itime ! numero du pas de temps  
36      real, intent(IN):: dtime ! pas de temps de la physique (en s)      real, intent(IN):: dtime ! pas de temps de la physique (en s)
37      integer, intent(IN):: jour ! jour dans l'annee en cours      integer, intent(IN):: jour ! jour dans l'annee en cours
38      real, intent(IN):: rmu0(klon) ! cosinus de l'angle solaire zenithal      real, intent(IN):: rmu0(klon) ! cosinus de l'angle solaire zenithal
# Line 183  contains Line 181  contains
181         ! Read albedo from the file containing boundary conditions then         ! Read albedo from the file containing boundary conditions then
182         ! add the albedo of snow:         ! add the albedo of snow:
183    
184         call interfsur_lim(itime, dtime, jour, knindex, debut, albedo, z0_new)         call interfsur_lim(dtime, jour, knindex, debut, albedo, z0_new)
185    
186         ! Calcul snow et qsurf, hydrologie adapt\'ee         ! Calcul snow et qsurf, hydrologie adapt\'ee
187         CALL calbeta(nisurf, snow(:knon), qsol(:knon), beta(:knon), &         CALL calbeta(nisurf, snow(:knon), qsol(:knon), beta(:knon), &
# Line 222  contains Line 220  contains
220      case (is_oce)      case (is_oce)
221         ! Surface "oc\'ean", appel \`a l'interface avec l'oc\'ean         ! Surface "oc\'ean", appel \`a l'interface avec l'oc\'ean
222    
223         call interfoce_lim(itime, dtime, jour, knindex, debut, tsurf_temp, &         call interfoce_lim(dtime, jour, knindex, debut, tsurf_temp, pctsrf_new)
             pctsrf_new)  
224    
225         cal = 0.         cal = 0.
226         beta = 1.         beta = 1.
# Line 249  contains Line 246  contains
246         ! Surface "glace de mer" appel a l'interface avec l'ocean         ! Surface "glace de mer" appel a l'interface avec l'ocean
247    
248         ! ! lecture conditions limites         ! ! lecture conditions limites
249         CALL interfoce_lim(itime, dtime, jour, knindex, debut, tsurf_new, &         CALL interfoce_lim(dtime, jour, knindex, debut, tsurf_new, pctsrf_new)
             pctsrf_new)  
250    
251         DO ii = 1, knon         DO ii = 1, knon
252            tsurf_new(ii) = tsurf(ii)            tsurf_new(ii) = tsurf(ii)
# Line 300  contains Line 296  contains
296         albedo = alb_neig * zfra + 0.6 * (1. - zfra)         albedo = alb_neig * zfra + 0.6 * (1. - zfra)
297    
298         fder = fder + dflux_s + dflux_l         fder = fder + dflux_s + dflux_l
299           z0_new = SQRT(0.002**2 + rugoro**2)
        ! 2eme appel a interfoce pour le cumul et le passage des flux a l'ocean  
   
        z0_new = 0.002  
        z0_new = SQRT(z0_new**2 + rugoro**2)  
300      case (is_lic)      case (is_lic)
301         if (.not. allocated(run_off_lic)) then         if (.not. allocated(run_off_lic)) then
302            allocate(run_off_lic(knon))            allocate(run_off_lic(knon))
# Line 348  contains Line 340  contains
340    
341         ! Remplissage des pourcentages de surface         ! Remplissage des pourcentages de surface
342         pctsrf_new(:, nisurf) = pctsrf(:, nisurf)         pctsrf_new(:, nisurf) = pctsrf(:, nisurf)
   
343      case default      case default
344         print *, 'Index surface = ', nisurf         print *, 'Index surface = ', nisurf
345         call abort_gcm("interfsurf_hq", 'Index surface non valable')         call abort_gcm("interfsurf_hq", 'Index surface non valable')

Legend:
Removed from v.178  
changed lines
  Added in v.191

  ViewVC Help
Powered by ViewVC 1.1.21