/[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 281 by guez, Fri Jul 20 16:28:36 2018 UTC revision 283 by guez, Fri Jul 20 17:08:44 2018 UTC
# Line 64  contains Line 64  contains
64      real, intent(IN):: precip_snow(klon)      real, intent(IN):: precip_snow(klon)
65      ! precipitation, solid water mass flux (kg / m2 / s), positive down      ! precipitation, solid water mass flux (kg / m2 / s), positive down
66    
67      real, intent(IN):: rugos(klon) ! rugosite      real, intent(IN):: rugos(:) ! (knon) rugosite
68      real, intent(IN):: rugoro(klon) ! rugosite orographique      real, intent(IN):: rugoro(:) ! (knon) rugosite orographique
69      real, intent(INOUT):: snow(:) ! (knon)      real, intent(INOUT):: snow(:) ! (knon)
70      real, intent(INOUT):: qsurf(klon)      real, intent(OUT):: qsurf(:) ! (knon)
71      real, intent(IN):: ts(:) ! (knon) temp\'erature de surface      real, intent(IN):: ts(:) ! (knon) temp\'erature de surface
72      real, intent(IN):: p1lay(:) ! (knon) pression 1er niveau (milieu de couche)      real, intent(IN):: p1lay(:) ! (knon) pression 1er niveau (milieu de couche)
73      real, intent(IN):: ps(:) ! (knon) pression au sol      real, intent(IN):: ps(:) ! (knon) pression au sol
# Line 81  contains Line 81  contains
81      real, intent(OUT):: dflux_l(:), dflux_s(:) ! (knon)      real, intent(OUT):: dflux_l(:), dflux_s(:) ! (knon)
82      real, intent(OUT):: tsurf_new(:) ! (knon) temp\'erature au sol      real, intent(OUT):: tsurf_new(:) ! (knon) temp\'erature au sol
83      real, intent(OUT):: albedo(:) ! (knon) albedo      real, intent(OUT):: albedo(:) ! (knon) albedo
84      real, intent(OUT):: z0_new(klon) ! surface roughness      real, intent(OUT):: z0_new(:) ! (knon) surface roughness
85    
86      real, intent(in):: pctsrf_new_sic(:) ! (klon)      real, intent(in):: pctsrf_new_sic(:) ! (klon)
87      ! nouvelle repartition des surfaces      ! nouvelle repartition des surfaces
88    
89      real, intent(INOUT):: agesno(:) ! (knon)      real, intent(INOUT):: agesno(:) ! (knon)
90    
91        real, intent(OUT):: fqcalving(:) ! (knon)
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
     real, intent(OUT):: fqcalving(:) ! (knon)  
94    
     ! Flux thermique utiliser pour fondre la neige  
95      real, dimension(klon), intent(INOUT):: ffonte      real, dimension(klon), intent(INOUT):: ffonte
96        ! Flux thermique utiliser pour fondre la neige
97    
98      real, dimension(klon), intent(INOUT):: run_off_lic_0      real, dimension(klon), intent(INOUT):: run_off_lic_0
99      ! run_off_lic_0 runoff glacier du pas de temps precedent      ! run_off_lic_0 runoff glacier du pas de temps precedent
# Line 144  contains Line 144  contains
144    
145      ffonte(1:knon) = 0.      ffonte(1:knon) = 0.
146      dif_grnd = 999999.      dif_grnd = 999999.
     z0_new = 999999.  
147    
148      ! Aiguillage vers les differents schemas de surface      ! Aiguillage vers les differents schemas de surface
149    
# Line 164  contains Line 163  contains
163         CALL soil(dtime, is_ter, snow, ts, tsoil, soilcap, soilflux)         CALL soil(dtime, is_ter, snow, ts, tsoil, soilcap, soilflux)
164         cal = RCPD / soilcap         cal = RCPD / soilcap
165    
166         CALL calcul_fluxs(dtime, ts, p1lay, cal, beta, tq_cdrag, ps, &         CALL calcul_fluxs(dtime, ts, p1lay, cal, beta, tq_cdrag, ps, qsurf, &
167              qsurf(:knon), radsol + soilflux, dif_grnd(:knon), temp_air, &              radsol + soilflux, dif_grnd(:knon), temp_air, spechum, u1_lay, &
168              spechum, u1_lay, v1_lay, petAcoef, peqAcoef, petBcoef, &              v1_lay, petAcoef, peqAcoef, petBcoef, peqBcoef, tsurf_new, evap, &
169              peqBcoef, tsurf_new, evap, fluxlat, flux_t, dflux_s, dflux_l)              fluxlat, flux_t, dflux_s, dflux_l)
170         CALL fonte_neige(is_ter, dtime, precip_rain(:knon), precip_snow(:knon), &         CALL fonte_neige(is_ter, dtime, precip_rain(:knon), precip_snow(:knon), &
171              snow, qsol, tsurf_new, evap, fqcalving, ffonte(:knon), &              snow, qsol, tsurf_new, evap, fqcalving, ffonte(:knon), &
172              run_off_lic_0(:knon))              run_off_lic_0(:knon))
# Line 184  contains Line 183  contains
183         cal = 0.         cal = 0.
184         beta = 1.         beta = 1.
185         dif_grnd = 0.         dif_grnd = 0.
186         call calcul_fluxs(dtime, tsurf, p1lay, cal, beta, tq_cdrag, ps, &         call calcul_fluxs(dtime, tsurf, p1lay, cal, beta, tq_cdrag, ps, qsurf, &
187              qsurf(:knon), radsol, dif_grnd(:knon), temp_air, spechum, u1_lay, &              radsol, dif_grnd(:knon), temp_air, spechum, u1_lay, v1_lay, &
188              v1_lay, petAcoef, peqAcoef, petBcoef, peqBcoef, tsurf_new, evap, &              petAcoef, peqAcoef, petBcoef, peqBcoef, tsurf_new, evap, fluxlat, &
189              fluxlat, flux_t, dflux_s, dflux_l)              flux_t, dflux_s, dflux_l)
190         agesno = 0.         agesno = 0.
191         albedo = alboc_cd(rmu0(knindex)) * fmagic         albedo = alboc_cd(rmu0(knindex)) * fmagic
192         z0_new = sqrt(rugos**2 + rugoro**2)         z0_new = sqrt(rugos**2 + rugoro**2)
# Line 211  contains Line 210  contains
210         tsurf = tsurf_new         tsurf = tsurf_new
211         beta = 1.         beta = 1.
212    
213         CALL calcul_fluxs(dtime, tsurf, p1lay, cal, beta, tq_cdrag, ps, &         CALL calcul_fluxs(dtime, tsurf, p1lay, cal, beta, tq_cdrag, ps, qsurf, &
214              qsurf(:knon), radsol + soilflux, dif_grnd(:knon), temp_air, &              radsol + soilflux, dif_grnd(:knon), temp_air, spechum, u1_lay, &
215              spechum, u1_lay, v1_lay, petAcoef, peqAcoef, petBcoef, &              v1_lay, petAcoef, peqAcoef, petBcoef, peqBcoef, tsurf_new, evap, &
216              peqBcoef, tsurf_new, evap, fluxlat, flux_t, dflux_s, dflux_l)              fluxlat, flux_t, dflux_s, dflux_l)
217         CALL fonte_neige(is_sic, dtime, precip_rain(:knon), &         CALL fonte_neige(is_sic, dtime, precip_rain(:knon), &
218              precip_snow(:knon), snow, qsol, tsurf_new, evap, &              precip_snow(:knon), snow, qsol, tsurf_new, evap, &
219              fqcalving, ffonte(:knon), run_off_lic_0(:knon))              fqcalving, ffonte(:knon), run_off_lic_0(:knon))
# Line 235  contains Line 234  contains
234         beta = 1.         beta = 1.
235         dif_grnd = 0.         dif_grnd = 0.
236    
237         call calcul_fluxs(dtime, ts, p1lay, cal, beta, tq_cdrag, ps, &         call calcul_fluxs(dtime, ts, p1lay, cal, beta, tq_cdrag, ps, qsurf, &
238              qsurf(:knon), radsol + soilflux, dif_grnd(:knon), temp_air, &              radsol + soilflux, dif_grnd(:knon), temp_air, spechum, u1_lay, &
239              spechum, u1_lay, v1_lay, petAcoef, peqAcoef, petBcoef, &              v1_lay, petAcoef, peqAcoef, petBcoef, peqBcoef, tsurf_new, evap, &
240              peqBcoef, tsurf_new, evap, fluxlat, flux_t, dflux_s, dflux_l)              fluxlat, flux_t, dflux_s, dflux_l)
241         call fonte_neige(is_lic, dtime, precip_rain(:knon), &         call fonte_neige(is_lic, dtime, precip_rain(:knon), &
242              precip_snow(:knon), snow, qsol, tsurf_new, evap, &              precip_snow(:knon), snow, qsol, tsurf_new, evap, &
243              fqcalving, ffonte(:knon), run_off_lic_0(:knon))              fqcalving, ffonte(:knon), run_off_lic_0(:knon))

Legend:
Removed from v.281  
changed lines
  Added in v.283

  ViewVC Help
Powered by ViewVC 1.1.21