/[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 267 by guez, Thu May 3 16:14:08 2018 UTC revision 279 by guez, Fri Jul 20 14:30:23 2018 UTC
# Line 20  contains Line 20  contains
20      USE abort_gcm_m, ONLY: abort_gcm      USE abort_gcm_m, ONLY: abort_gcm
21      use alboc_cd_m, only: alboc_cd      use alboc_cd_m, only: alboc_cd
22      USE albsno_m, ONLY: albsno      USE albsno_m, ONLY: albsno
     use calbeta_m, only: calbeta  
23      USE calcul_fluxs_m, ONLY: calcul_fluxs      USE calcul_fluxs_m, ONLY: calcul_fluxs
24      USE dimphy, ONLY: klon      USE dimphy, ONLY: klon
25      USE fonte_neige_m, ONLY: fonte_neige      USE fonte_neige_m, ONLY: fonte_neige
# Line 92  contains Line 91  contains
91    
92      ! Flux d'eau "perdue" par la surface et n\'ecessaire pour limiter la      ! Flux d'eau "perdue" par la surface et n\'ecessaire pour limiter la
93      ! hauteur de neige, en kg / m2 / s      ! hauteur de neige, en kg / m2 / s
94      real, dimension(klon), intent(INOUT):: fqcalving      real, intent(OUT):: fqcalving(:) ! (knon)
95    
96      ! Flux thermique utiliser pour fondre la neige      ! Flux thermique utiliser pour fondre la neige
97      real, dimension(klon), intent(INOUT):: ffonte      real, dimension(klon), intent(INOUT):: ffonte
# Line 108  contains Line 107  contains
107      integer ii      integer ii
108      real cal(size(knindex)) ! (knon)      real cal(size(knindex)) ! (knon)
109      real beta(size(knindex)) ! (knon) evap reelle      real beta(size(knindex)) ! (knon) evap reelle
110      real dif_grnd(klon), capsol(klon)      real dif_grnd(klon)
111      real tsurf(size(knindex)) ! (knon)      real tsurf(size(knindex)) ! (knon)
112      real alb_neig(size(knindex)) ! (knon)      real alb_neig(size(knindex)) ! (knon)
113      real zfra(size(knindex)) ! (knon)      real zfra(size(knindex)) ! (knon)
114      REAL, PARAMETER:: fmagic = 1. ! facteur magique pour r\'egler l'alb\'edo      REAL, PARAMETER:: fmagic = 1. ! facteur magique pour r\'egler l'alb\'edo
115        REAL, PARAMETER:: max_eau_sol = 150. ! in kg m-2
116        REAL, PARAMETER:: tau_gl = 86400. * 5.
117    
118      !-------------------------------------------------------------      !-------------------------------------------------------------
119    
# Line 143  contains Line 144  contains
144      ! Initialisations diverses      ! Initialisations diverses
145    
146      ffonte(1:knon) = 0.      ffonte(1:knon) = 0.
     fqcalving(1:knon) = 0.  
147      dif_grnd = 999999.      dif_grnd = 999999.
     capsol = 999999.  
148      z0_new = 999999.      z0_new = 999999.
149    
150      ! Aiguillage vers les differents schemas de surface      ! Aiguillage vers les differents schemas de surface
# Line 161  contains Line 160  contains
160    
161         call interfsur_lim(dtime, julien, knindex, debut, albedo, z0_new)         call interfsur_lim(dtime, julien, knindex, debut, albedo, z0_new)
162    
163         ! Calcul de snow et qsurf, hydrologie adapt\'ee         beta = min(2. * qsol / max_eau_sol, 1.)
164         CALL calbeta(is_ter, snow, qsol, beta, capsol(:knon), dif_grnd(:knon))         dif_grnd(:knon) = 0.
   
165         CALL soil(dtime, is_ter, snow, ts, tsoil, soilcap, soilflux)         CALL soil(dtime, is_ter, snow, ts, tsoil, soilcap, soilflux)
166         cal = RCPD / soilcap         cal = RCPD / soilcap
167    
# Line 174  contains Line 172  contains
172              peqBcoef(:knon), tsurf_new, evap, fluxlat, flux_t, dflux_s, dflux_l)              peqBcoef(:knon), tsurf_new, evap, fluxlat, flux_t, dflux_s, dflux_l)
173         CALL fonte_neige(is_ter, dtime, precip_rain(:knon), &         CALL fonte_neige(is_ter, dtime, precip_rain(:knon), &
174              precip_snow(:knon), snow, qsol, tsurf_new, evap, &              precip_snow(:knon), snow, qsol, tsurf_new, evap, &
175              fqcalving(:knon), ffonte(:knon), run_off_lic_0(:knon))              fqcalving, ffonte(:knon), run_off_lic_0(:knon))
176    
177         call albsno(dtime, agesno, alb_neig, precip_snow(:knon))         call albsno(dtime, agesno, alb_neig, precip_snow(:knon))
178         where (snow < 0.0001) agesno = 0.         where (snow < 0.0001) agesno = 0.
# Line 196  contains Line 194  contains
194         agesno = 0.         agesno = 0.
195         albedo = alboc_cd(rmu0(knindex)) * fmagic         albedo = alboc_cd(rmu0(knindex)) * fmagic
196         z0_new = sqrt(rugos**2 + rugoro**2)         z0_new = sqrt(rugos**2 + rugoro**2)
197           fqcalving = 0.
198      case (is_sic)      case (is_sic)
199         ! Surface "glace de mer" appel a l'interface avec l'ocean         ! Surface "glace de mer" appel a l'interface avec l'ocean
200    
# Line 209  contains Line 208  contains
208            endif            endif
209         enddo         enddo
210    
        CALL calbeta(is_sic, snow, qsol, beta, capsol(:knon), dif_grnd(:knon))  
211         CALL soil(dtime, is_sic, snow, tsurf_new, tsoil, soilcap, soilflux)         CALL soil(dtime, is_sic, snow, tsurf_new, tsoil, soilcap, soilflux)
212         cal = RCPD / soilcap         cal = RCPD / soilcap
213         dif_grnd = 0.         dif_grnd = 1. / tau_gl
214         tsurf = tsurf_new         tsurf = tsurf_new
215         beta = 1.         beta = 1.
216    
# Line 223  contains Line 221  contains
221              peqBcoef(:knon), tsurf_new, evap, fluxlat, flux_t, dflux_s, dflux_l)              peqBcoef(:knon), tsurf_new, evap, fluxlat, flux_t, dflux_s, dflux_l)
222         CALL fonte_neige(is_sic, dtime, precip_rain(:knon), &         CALL fonte_neige(is_sic, dtime, precip_rain(:knon), &
223              precip_snow(:knon), snow, qsol, tsurf_new, evap, &              precip_snow(:knon), snow, qsol, tsurf_new, evap, &
224              fqcalving(:knon), ffonte(:knon), run_off_lic_0(:knon))              fqcalving, ffonte(:knon), run_off_lic_0(:knon))
225    
226         ! Compute the albedo:         ! Compute the albedo:
227    
# Line 248  contains Line 246  contains
246              peqBcoef(:knon), tsurf_new, evap, fluxlat, flux_t, dflux_s, dflux_l)              peqBcoef(:knon), tsurf_new, evap, fluxlat, flux_t, dflux_s, dflux_l)
247         call fonte_neige(is_lic, dtime, precip_rain(:knon), &         call fonte_neige(is_lic, dtime, precip_rain(:knon), &
248              precip_snow(:knon), snow, qsol, tsurf_new, evap, &              precip_snow(:knon), snow, qsol, tsurf_new, evap, &
249              fqcalving(:knon), ffonte(:knon), run_off_lic_0(:knon))              fqcalving, ffonte(:knon), run_off_lic_0(:knon))
250    
251         ! calcul albedo         ! calcul albedo
252         CALL albsno(dtime, agesno, alb_neig, precip_snow(:knon))         CALL albsno(dtime, agesno, alb_neig, precip_snow(:knon))

Legend:
Removed from v.267  
changed lines
  Added in v.279

  ViewVC Help
Powered by ViewVC 1.1.21