1 | ! |
---|
2 | MODULE surf_landice_mod |
---|
3 | |
---|
4 | IMPLICIT NONE |
---|
5 | |
---|
6 | CONTAINS |
---|
7 | ! |
---|
8 | !**************************************************************************************** |
---|
9 | ! |
---|
10 | SUBROUTINE surf_landice(itime, dtime, knon, knindex, & |
---|
11 | rlon, rlat, debut, lafin, & |
---|
12 | rmu0, lwdownm, albedo, pphi1, & |
---|
13 | swnet, lwnet, tsurf, p1lay, & |
---|
14 | cdragh, cdragm, precip_rain, precip_snow, temp_air, spechum, & |
---|
15 | AcoefH, AcoefQ, BcoefH, BcoefQ, & |
---|
16 | AcoefU, AcoefV, BcoefU, BcoefV, & |
---|
17 | ps, u1, v1, gustiness, rugoro, pctsrf, & |
---|
18 | snow, qsurf, qsol, agesno, & |
---|
19 | tsoil, z0m, z0h, SFRWL, alb_dir, alb_dif, evap, fluxsens, fluxlat, & |
---|
20 | tsurf_new, dflux_s, dflux_l, & |
---|
21 | alt, slope, cloudf, & |
---|
22 | snowhgt, qsnow, to_ice, sissnow, & |
---|
23 | alb3, runoff, & |
---|
24 | flux_u1, flux_v1 & |
---|
25 | #ifdef ISO |
---|
26 | & ,xtprecip_rain, xtprecip_snow,xtspechum,Rland_ice & |
---|
27 | & ,xtsnow,xtsol,xtevap & |
---|
28 | #endif |
---|
29 | & ) |
---|
30 | |
---|
31 | USE dimphy |
---|
32 | USE surface_data, ONLY : type_ocean, calice, calsno, landice_opt, iflag_albcalc |
---|
33 | USE fonte_neige_mod, ONLY : fonte_neige,run_off_lic,fqcalving_global,ffonte_global,fqfonte_global,runofflic_global |
---|
34 | USE cpl_mod, ONLY : cpl_send_landice_fields |
---|
35 | USE calcul_fluxs_mod |
---|
36 | USE phys_output_var_mod |
---|
37 | #ifdef ISO |
---|
38 | USE fonte_neige_mod, ONLY : xtrun_off_lic |
---|
39 | USE infotrac_phy, ONLY : ntiso,niso |
---|
40 | USE isotopes_routines_mod, ONLY: calcul_iso_surf_lic_vectall |
---|
41 | #ifdef ISOVERIF |
---|
42 | use isotopes_mod, ONLY: iso_eau,ridicule |
---|
43 | use isotopes_verif_mod |
---|
44 | #endif |
---|
45 | #endif |
---|
46 | USE geometry_mod, ONLY : longitude,latitude |
---|
47 | |
---|
48 | !FC |
---|
49 | USE ioipsl_getin_p_mod, ONLY : getin_p |
---|
50 | |
---|
51 | |
---|
52 | #ifdef CPP_INLANDSIS |
---|
53 | USE surf_inlandsis_mod, ONLY : surf_inlandsis |
---|
54 | #endif |
---|
55 | |
---|
56 | USE indice_sol_mod |
---|
57 | |
---|
58 | |
---|
59 | ! INCLUDE "indicesol.h" |
---|
60 | INCLUDE "dimsoil.h" |
---|
61 | INCLUDE "YOMCST.h" |
---|
62 | INCLUDE "clesphys.h" |
---|
63 | |
---|
64 | ! Input variables |
---|
65 | !**************************************************************************************** |
---|
66 | INTEGER, INTENT(IN) :: itime, knon |
---|
67 | INTEGER, DIMENSION(klon), INTENT(in) :: knindex |
---|
68 | REAL, INTENT(in) :: dtime |
---|
69 | REAL, DIMENSION(klon), INTENT(IN) :: swnet ! net shortwave radiance |
---|
70 | REAL, DIMENSION(klon), INTENT(IN) :: lwnet ! net longwave radiance |
---|
71 | REAL, DIMENSION(klon), INTENT(IN) :: tsurf |
---|
72 | REAL, DIMENSION(klon), INTENT(IN) :: p1lay |
---|
73 | REAL, DIMENSION(klon), INTENT(IN) :: cdragh, cdragm |
---|
74 | REAL, DIMENSION(klon), INTENT(IN) :: precip_rain, precip_snow |
---|
75 | REAL, DIMENSION(klon), INTENT(IN) :: temp_air, spechum |
---|
76 | REAL, DIMENSION(klon), INTENT(IN) :: AcoefH, AcoefQ |
---|
77 | REAL, DIMENSION(klon), INTENT(IN) :: BcoefH, BcoefQ |
---|
78 | REAL, DIMENSION(klon), INTENT(IN) :: AcoefU, AcoefV, BcoefU, BcoefV |
---|
79 | REAL, DIMENSION(klon), INTENT(IN) :: ps |
---|
80 | REAL, DIMENSION(klon), INTENT(IN) :: u1, v1, gustiness |
---|
81 | REAL, DIMENSION(klon), INTENT(IN) :: rugoro |
---|
82 | REAL, DIMENSION(klon,nbsrf), INTENT(IN) :: pctsrf |
---|
83 | #ifdef ISO |
---|
84 | REAL, DIMENSION(ntiso,klon), INTENT(IN) :: xtprecip_rain, xtprecip_snow |
---|
85 | REAL, DIMENSION(ntiso,klon), INTENT(IN) :: xtspechum |
---|
86 | #endif |
---|
87 | |
---|
88 | LOGICAL, INTENT(IN) :: debut !true if first step |
---|
89 | LOGICAL, INTENT(IN) :: lafin !true if last step |
---|
90 | REAL, DIMENSION(klon), INTENT(IN) :: rlon, rlat |
---|
91 | REAL, DIMENSION(klon), INTENT(IN) :: rmu0 |
---|
92 | REAL, DIMENSION(klon), INTENT(IN) :: lwdownm !ylwdown |
---|
93 | REAL, DIMENSION(klon), INTENT(IN) :: albedo !mean albedo |
---|
94 | REAL, DIMENSION(klon), INTENT(IN) :: pphi1 |
---|
95 | REAL, DIMENSION(klon), INTENT(IN) :: alt !mean altitude of the grid box |
---|
96 | REAL, DIMENSION(klon), INTENT(IN) :: slope !mean slope in grid box |
---|
97 | REAL, DIMENSION(klon), INTENT(IN) :: cloudf !total cloud fraction |
---|
98 | |
---|
99 | ! In/Output variables |
---|
100 | !**************************************************************************************** |
---|
101 | REAL, DIMENSION(klon), INTENT(INOUT) :: snow, qsol |
---|
102 | REAL, DIMENSION(klon), INTENT(INOUT) :: agesno |
---|
103 | REAL, DIMENSION(klon, nsoilmx), INTENT(INOUT) :: tsoil |
---|
104 | #ifdef ISO |
---|
105 | REAL, DIMENSION(niso,klon), INTENT(INOUT) :: xtsnow, xtsol |
---|
106 | REAL, DIMENSION(niso,klon), INTENT(INOUT) :: Rland_ice |
---|
107 | #endif |
---|
108 | |
---|
109 | ! Output variables |
---|
110 | !**************************************************************************************** |
---|
111 | REAL, DIMENSION(klon), INTENT(OUT) :: qsurf |
---|
112 | REAL, DIMENSION(klon), INTENT(OUT) :: z0m, z0h |
---|
113 | !albedo SB >>> |
---|
114 | ! REAL, DIMENSION(klon), INTENT(OUT) :: alb1 ! new albedo in visible SW interval |
---|
115 | ! REAL, DIMENSION(klon), INTENT(OUT) :: alb2 ! new albedo in near IR interval |
---|
116 | REAL, DIMENSION(6), INTENT(IN) :: SFRWL |
---|
117 | REAL, DIMENSION(klon,nsw), INTENT(OUT) :: alb_dir,alb_dif |
---|
118 | !albedo SB <<< |
---|
119 | REAL, DIMENSION(klon), INTENT(OUT) :: evap, fluxsens, fluxlat |
---|
120 | REAL, DIMENSION(klon), INTENT(OUT) :: tsurf_new |
---|
121 | REAL, DIMENSION(klon), INTENT(OUT) :: dflux_s, dflux_l |
---|
122 | REAL, DIMENSION(klon), INTENT(OUT) :: flux_u1, flux_v1 |
---|
123 | |
---|
124 | REAL, DIMENSION(klon), INTENT(OUT) :: alb3 |
---|
125 | REAL, DIMENSION(klon), INTENT(OUT) :: qsnow !column water in snow [kg/m2] |
---|
126 | REAL, DIMENSION(klon), INTENT(OUT) :: snowhgt !Snow height (m) |
---|
127 | REAL, DIMENSION(klon), INTENT(OUT) :: to_ice |
---|
128 | REAL, DIMENSION(klon), INTENT(OUT) :: sissnow |
---|
129 | REAL, DIMENSION(klon), INTENT(OUT) :: runoff !Land ice runoff |
---|
130 | #ifdef ISO |
---|
131 | REAL, DIMENSION(ntiso,klon), INTENT(OUT) :: xtevap |
---|
132 | ! real, DIMENSION(niso,klon) :: xtrun_off_lic_0_diag ! est une variable globale de |
---|
133 | ! fonte_neige |
---|
134 | #endif |
---|
135 | |
---|
136 | |
---|
137 | ! Local variables |
---|
138 | !**************************************************************************************** |
---|
139 | REAL, DIMENSION(klon) :: soilcap, soilflux |
---|
140 | REAL, DIMENSION(klon) :: cal, beta, dif_grnd |
---|
141 | REAL, DIMENSION(klon) :: zfra, alb_neig |
---|
142 | REAL, DIMENSION(klon) :: radsol |
---|
143 | REAL, DIMENSION(klon) :: u0, v0, u1_lay, v1_lay, ustar |
---|
144 | INTEGER :: i,j,nt |
---|
145 | REAL, DIMENSION(klon) :: fqfonte,ffonte |
---|
146 | REAL, DIMENSION(klon) :: run_off_lic_frac |
---|
147 | #ifdef ISO |
---|
148 | real, parameter :: t_coup = 273.15 |
---|
149 | real, dimension(klon) :: fqfonte_diag |
---|
150 | real, dimension(klon) :: fq_fonte_diag |
---|
151 | real, dimension(klon) :: snow_evap_diag |
---|
152 | real, dimension(klon) :: fqcalving_diag |
---|
153 | real max_eau_sol_diag |
---|
154 | real, dimension(klon) :: runoff_diag |
---|
155 | real, dimension(klon) :: run_off_lic_diag |
---|
156 | real :: coeff_rel_diag |
---|
157 | integer ixt |
---|
158 | REAL, DIMENSION(niso,klon) :: xtsnow_prec,xtsol_prec |
---|
159 | REAL, DIMENSION(klon) :: snow_prec,qsol_prec |
---|
160 | ! real, DIMENSION(klon) :: run_off_lic_0_diag |
---|
161 | #endif |
---|
162 | |
---|
163 | REAL, DIMENSION(klon) :: emis_new !Emissivity |
---|
164 | REAL, DIMENSION(klon) :: swdown,lwdown |
---|
165 | REAL, DIMENSION(klon) :: precip_snow_adv, snow_adv !Snow Drift precip./advection (not used in inlandsis) |
---|
166 | REAL, DIMENSION(klon) :: erod !erosion of surface snow (flux, kg/m2/s like evap) |
---|
167 | REAL, DIMENSION(klon) :: zsl_height, wind_velo !surface layer height, wind spd |
---|
168 | REAL, DIMENSION(klon) :: dens_air, snow_cont_air !air density; snow content air |
---|
169 | REAL, DIMENSION(klon) :: alb_soil !albedo of underlying ice |
---|
170 | REAL, DIMENSION(klon) :: pexner !Exner potential |
---|
171 | REAL :: pref |
---|
172 | REAL, DIMENSION(klon,nsoilmx) :: tsoil0 !modif |
---|
173 | REAL :: dtis ! subtimestep |
---|
174 | LOGICAL :: debut_is, lafin_is ! debut and lafin for inlandsis |
---|
175 | |
---|
176 | CHARACTER (len = 20) :: modname = 'surf_landice' |
---|
177 | CHARACTER (len = 80) :: abort_message |
---|
178 | |
---|
179 | |
---|
180 | REAL,DIMENSION(klon) :: alb1,alb2 |
---|
181 | REAL, DIMENSION (klon,6) :: alb6 |
---|
182 | ! End definition |
---|
183 | !**************************************************************************************** |
---|
184 | !FC |
---|
185 | !FC |
---|
186 | REAL,SAVE :: alb_vis_sno_lic |
---|
187 | !$OMP THREADPRIVATE(alb_vis_sno_lic) |
---|
188 | REAL,SAVE :: alb_nir_sno_lic |
---|
189 | !$OMP THREADPRIVATE(alb_nir_sno_lic) |
---|
190 | LOGICAL, SAVE :: firstcall = .TRUE. |
---|
191 | !$OMP THREADPRIVATE(firstcall) |
---|
192 | |
---|
193 | |
---|
194 | !FC firtscall initializations |
---|
195 | !****************************************************************************************** |
---|
196 | #ifdef ISO |
---|
197 | #ifdef ISOVERIF |
---|
198 | ! write(*,*) 'surf_land_ice 1499' |
---|
199 | do i=1,knon |
---|
200 | if (iso_eau.gt.0) then |
---|
201 | call iso_verif_egalite_choix(xtsnow(iso_eau,i),snow(i), & |
---|
202 | & 'surf_land_ice 126',errmax,errmaxrel) |
---|
203 | endif !if (iso_eau.gt.0) then |
---|
204 | enddo !do i=1,knon |
---|
205 | #endif |
---|
206 | #endif |
---|
207 | |
---|
208 | IF (firstcall) THEN |
---|
209 | alb_vis_sno_lic=0.77 |
---|
210 | CALL getin_p('alb_vis_sno_lic',alb_vis_sno_lic) |
---|
211 | PRINT*, 'alb_vis_sno_lic',alb_vis_sno_lic |
---|
212 | alb_nir_sno_lic=0.77 |
---|
213 | CALL getin_p('alb_nir_sno_lic',alb_nir_sno_lic) |
---|
214 | PRINT*, 'alb_nir_sno_lic',alb_nir_sno_lic |
---|
215 | |
---|
216 | ! z0m=1.e-3 |
---|
217 | ! z0h = z0m |
---|
218 | firstcall=.false. |
---|
219 | ENDIF |
---|
220 | !****************************************************************************************** |
---|
221 | ! |
---|
222 | ! Initialize output variables |
---|
223 | alb3(:) = 999999. |
---|
224 | alb2(:) = 999999. |
---|
225 | alb1(:) = 999999. |
---|
226 | |
---|
227 | runoff(:) = 0. |
---|
228 | !**************************************************************************************** |
---|
229 | ! Calculate total absorbed radiance at surface |
---|
230 | ! |
---|
231 | !**************************************************************************************** |
---|
232 | radsol(:) = 0.0 |
---|
233 | radsol(1:knon) = swnet(1:knon) + lwnet(1:knon) |
---|
234 | |
---|
235 | !**************************************************************************************** |
---|
236 | ! landice_opt = 0 : soil_model, calcul_flux, fonte_neige, ... |
---|
237 | ! landice_opt = 1 : prepare and call INterace Lmdz SISvat (INLANDSIS) |
---|
238 | !**************************************************************************************** |
---|
239 | |
---|
240 | |
---|
241 | IF (landice_opt .EQ. 1) THEN |
---|
242 | |
---|
243 | !**************************************************************************************** |
---|
244 | ! CALL to INLANDSIS interface |
---|
245 | !**************************************************************************************** |
---|
246 | #ifdef CPP_INLANDSIS |
---|
247 | |
---|
248 | #ifdef ISO |
---|
249 | CALL abort_gcm('surf_landice 235','isotopes pas dans INLANDSIS',1) |
---|
250 | #endif |
---|
251 | |
---|
252 | debut_is=debut |
---|
253 | lafin_is=.false. |
---|
254 | ! Suppose zero surface speed |
---|
255 | u0(:) = 0.0 |
---|
256 | v0(:) = 0.0 |
---|
257 | |
---|
258 | |
---|
259 | CALL calcul_flux_wind(knon, dtime, & |
---|
260 | u0, v0, u1, v1, gustiness, cdragm, & |
---|
261 | AcoefU, AcoefV, BcoefU, BcoefV, & |
---|
262 | p1lay, temp_air, & |
---|
263 | flux_u1, flux_v1) |
---|
264 | |
---|
265 | |
---|
266 | ! Set constants and compute some input for SISVAT |
---|
267 | ! = 1000 hPa |
---|
268 | ! and calculate incoming flux for SW and LW interval: swdown, lwdown |
---|
269 | swdown(:) = 0.0 |
---|
270 | lwdown(:) = 0.0 |
---|
271 | snow_cont_air(:) = 0. ! the snow content in air is not a prognostic variable of the model |
---|
272 | alb_soil(:) = 0.4 ! before albedo(:) but here it is the ice albedo that we have to set |
---|
273 | ustar(:) = 0. |
---|
274 | pref = 100000. |
---|
275 | DO i = 1, knon |
---|
276 | swdown(i) = swnet(i)/(1-albedo(i)) |
---|
277 | lwdown(i) = lwdownm(i) |
---|
278 | wind_velo(i) = u1(i)**2 + v1(i)**2 |
---|
279 | wind_velo(i) = wind_velo(i)**0.5 |
---|
280 | pexner(i) = (p1lay(i)/pref)**(RD/RCPD) |
---|
281 | dens_air(i) = p1lay(i)/RD/temp_air(i) ! dry air density |
---|
282 | zsl_height(i) = pphi1(i)/RG |
---|
283 | tsoil0(i,:) = tsoil(i,:) |
---|
284 | ustar(i)= (cdragm(i)*(wind_velo(i)**2))**0.5 |
---|
285 | END DO |
---|
286 | |
---|
287 | |
---|
288 | |
---|
289 | dtis=dtime |
---|
290 | |
---|
291 | IF (lafin) THEN |
---|
292 | lafin_is=.true. |
---|
293 | END IF |
---|
294 | |
---|
295 | CALL surf_inlandsis(knon, rlon, rlat, knindex, itime, dtis, debut_is, lafin_is,& |
---|
296 | rmu0, swdown, lwdown, albedo, pexner, ps, p1lay, precip_rain, precip_snow, & |
---|
297 | zsl_height, wind_velo, ustar, temp_air, dens_air, spechum, tsurf,& |
---|
298 | rugoro, snow_cont_air, alb_soil, alt, slope, cloudf, & |
---|
299 | radsol, qsol, tsoil0, snow, zfra, snowhgt, qsnow, to_ice, sissnow,agesno, & |
---|
300 | AcoefH, AcoefQ, BcoefH, BcoefQ, cdragm, cdragh, & |
---|
301 | run_off_lic, fqfonte, ffonte, evap, erod, fluxsens, fluxlat,dflux_s, dflux_l, & |
---|
302 | tsurf_new, alb1, alb2, alb3, alb6, & |
---|
303 | emis_new, z0m, z0h, qsurf) |
---|
304 | |
---|
305 | debut_is=.false. |
---|
306 | |
---|
307 | |
---|
308 | ! Treatment of snow melting and calving |
---|
309 | |
---|
310 | ! for consistency with standard LMDZ, add calving to run_off_lic |
---|
311 | run_off_lic(:)=run_off_lic(:) + to_ice(:) |
---|
312 | |
---|
313 | DO i = 1, knon |
---|
314 | ffonte_global(knindex(i),is_lic) = ffonte(i) |
---|
315 | fqfonte_global(knindex(i),is_lic) = fqfonte(i)! net melting= melting - refreezing |
---|
316 | fqcalving_global(knindex(i),is_lic) = to_ice(i) ! flux |
---|
317 | runofflic_global(knindex(i)) = run_off_lic(i) |
---|
318 | ENDDO |
---|
319 | ! Here, we assume that the calving term is equal to the to_ice term |
---|
320 | ! (no ice accumulation) |
---|
321 | |
---|
322 | |
---|
323 | #else |
---|
324 | abort_message='Pb de coherence: landice_opt = 1 mais CPP_INLANDSIS = .false.' |
---|
325 | CALL abort_physic(modname,abort_message,1) |
---|
326 | #endif |
---|
327 | |
---|
328 | |
---|
329 | |
---|
330 | ELSE |
---|
331 | |
---|
332 | !**************************************************************************************** |
---|
333 | ! Soil calculations |
---|
334 | ! |
---|
335 | !**************************************************************************************** |
---|
336 | |
---|
337 | ! EV: use calbeta |
---|
338 | CALL calbeta(dtime, is_lic, knon, snow, qsol, beta, cal, dif_grnd) |
---|
339 | |
---|
340 | |
---|
341 | ! use soil model and recalculate properly cal |
---|
342 | IF (soil_model) THEN |
---|
343 | CALL soil(dtime, is_lic, knon, snow, tsurf, qsol, & |
---|
344 | & longitude(knindex(1:knon)), latitude(knindex(1:knon)), tsoil, soilcap, soilflux) |
---|
345 | |
---|
346 | cal(1:knon) = RCPD / soilcap(1:knon) |
---|
347 | radsol(1:knon) = radsol(1:knon) + soilflux(1:knon) |
---|
348 | ELSE |
---|
349 | cal = RCPD * calice |
---|
350 | WHERE (snow > 0.0) cal = RCPD * calsno |
---|
351 | ENDIF |
---|
352 | |
---|
353 | |
---|
354 | !**************************************************************************************** |
---|
355 | ! Calulate fluxes |
---|
356 | ! |
---|
357 | !**************************************************************************************** |
---|
358 | ! beta(:) = 1.0 |
---|
359 | ! dif_grnd(:) = 0.0 |
---|
360 | |
---|
361 | ! Suppose zero surface speed |
---|
362 | u0(:)=0.0 |
---|
363 | v0(:)=0.0 |
---|
364 | u1_lay(:) = u1(:) - u0(:) |
---|
365 | v1_lay(:) = v1(:) - v0(:) |
---|
366 | |
---|
367 | CALL calcul_fluxs(knon, is_lic, dtime, & |
---|
368 | tsurf, p1lay, cal, beta, cdragh, cdragh, ps, & |
---|
369 | precip_rain, precip_snow, snow, qsurf, & |
---|
370 | radsol, dif_grnd, temp_air, spechum, u1_lay, v1_lay, gustiness, & |
---|
371 | 1.,AcoefH, AcoefQ, BcoefH, BcoefQ, & |
---|
372 | tsurf_new, evap, fluxlat, fluxsens, dflux_s, dflux_l) |
---|
373 | |
---|
374 | |
---|
375 | #ifdef ISO |
---|
376 | ! verif |
---|
377 | #ifdef ISOVERIF |
---|
378 | !write(*,*) 'surf_land_ice 1499' |
---|
379 | do i=1,knon |
---|
380 | if (iso_eau.gt.0) then |
---|
381 | if (snow(i).gt.ridicule) then |
---|
382 | call iso_verif_egalite_choix(xtsnow(iso_eau,i),snow(i), & |
---|
383 | & 'surf_land_ice 1151',errmax,errmaxrel) |
---|
384 | endif !if ((snow(i).gt.ridicule)) then |
---|
385 | endif !if (iso_eau.gt.0) then |
---|
386 | enddo !do i=1,knon |
---|
387 | #endif |
---|
388 | !#ifdef ISOVERIF |
---|
389 | |
---|
390 | do i=1,knon |
---|
391 | snow_prec(i)=snow(i) |
---|
392 | do ixt=1,niso |
---|
393 | xtsnow_prec(ixt,i)=xtsnow(ixt,i) |
---|
394 | enddo !do ixt=1,niso |
---|
395 | ! initialisation: |
---|
396 | fq_fonte_diag(i)=0.0 |
---|
397 | fqfonte_diag(i)=0.0 |
---|
398 | snow_evap_diag(i)=0.0 |
---|
399 | enddo !do i=1,knon |
---|
400 | #endif |
---|
401 | !#ifdef ISO |
---|
402 | CALL calcul_flux_wind(knon, dtime, & |
---|
403 | u0, v0, u1, v1, gustiness, cdragm, & |
---|
404 | AcoefU, AcoefV, BcoefU, BcoefV, & |
---|
405 | p1lay, temp_air, & |
---|
406 | flux_u1, flux_v1) |
---|
407 | |
---|
408 | !**************************************************************************************** |
---|
409 | ! Calculate snow height, age, run-off,.. |
---|
410 | ! |
---|
411 | !**************************************************************************************** |
---|
412 | CALL fonte_neige(knon, is_lic, knindex, dtime, & |
---|
413 | tsurf, precip_rain, precip_snow, & |
---|
414 | snow, qsol, tsurf_new, evap & |
---|
415 | #ifdef ISO |
---|
416 | & ,fq_fonte_diag,fqfonte_diag,snow_evap_diag,fqcalving_diag & |
---|
417 | & ,max_eau_sol_diag,runoff_diag,run_off_lic_diag,coeff_rel_diag & |
---|
418 | #endif |
---|
419 | & ) |
---|
420 | |
---|
421 | |
---|
422 | #ifdef ISO |
---|
423 | #ifdef ISOVERIF |
---|
424 | do i=1,knon |
---|
425 | if (iso_eau.gt.0) then |
---|
426 | call iso_verif_egalite_choix(Rland_ice(iso_eau,i),1.0, & |
---|
427 | & 'surf_landice_mod 217',errmax,errmaxrel) |
---|
428 | endif !if (iso_eau.gt.0) then |
---|
429 | enddo !do i=1,knon |
---|
430 | #endif |
---|
431 | !#ifdef ISOVERIF |
---|
432 | |
---|
433 | call calcul_iso_surf_lic_vectall(klon,knon, & |
---|
434 | & evap,snow_evap_diag,Tsurf_new,snow, & |
---|
435 | & fq_fonte_diag,fqfonte_diag,dtime,t_coup, & |
---|
436 | & precip_snow,xtprecip_snow,precip_rain,xtprecip_rain, snow_prec,xtsnow_prec, & |
---|
437 | & xtspechum,spechum,ps,Rland_ice, & |
---|
438 | & xtevap,xtsnow,fqcalving_diag, & |
---|
439 | & knindex,is_lic,run_off_lic_diag,coeff_rel_diag & |
---|
440 | & ) |
---|
441 | |
---|
442 | ! call fonte_neige_export_xtrun_off_lic_0(knon,xtrun_off_lic_0_diag) |
---|
443 | |
---|
444 | #endif |
---|
445 | !#ifdef ISO |
---|
446 | |
---|
447 | |
---|
448 | !**************************************************************************************** |
---|
449 | ! Calculate albedo |
---|
450 | ! |
---|
451 | !**************************************************************************************** |
---|
452 | CALL albsno(klon,knon,dtime,agesno(:),alb_neig(:), precip_snow(:)) |
---|
453 | |
---|
454 | WHERE (snow(1 : knon) .LT. 0.0001) agesno(1 : knon) = 0. |
---|
455 | zfra(1:knon) = MAX(0.0,MIN(1.0,snow(1:knon)/(snow(1:knon)+10.0))) |
---|
456 | alb1(1:knon) = alb_neig(1:knon)*zfra(1:knon) + & |
---|
457 | 0.6 * (1.0-zfra(1:knon)) |
---|
458 | ! |
---|
459 | !IM: plusieurs choix/tests sur l'albedo des "glaciers continentaux" |
---|
460 | ! alb1(1 : knon) = 0.6 !IM cf FH/GK |
---|
461 | ! alb1(1 : knon) = 0.82 |
---|
462 | ! alb1(1 : knon) = 0.77 !211003 Ksta0.77 |
---|
463 | ! alb1(1 : knon) = 0.8 !KstaTER0.8 & LMD_ARMIP5 |
---|
464 | !IM: KstaTER0.77 & LMD_ARMIP6 |
---|
465 | |
---|
466 | ! Attantion: alb1 and alb2 are not the same! |
---|
467 | alb1(1:knon) = alb_vis_sno_lic |
---|
468 | alb2(1:knon) = alb_nir_sno_lic |
---|
469 | |
---|
470 | |
---|
471 | !**************************************************************************************** |
---|
472 | ! Rugosity |
---|
473 | ! |
---|
474 | !**************************************************************************************** |
---|
475 | z0m=1.e-3 |
---|
476 | z0h = z0m |
---|
477 | z0m = SQRT(z0m**2+rugoro**2) |
---|
478 | |
---|
479 | |
---|
480 | |
---|
481 | END IF ! landice_opt |
---|
482 | |
---|
483 | |
---|
484 | !**************************************************************************************** |
---|
485 | ! Send run-off on land-ice to coupler if coupled ocean. |
---|
486 | ! run_off_lic has been calculated in fonte_neige or surf_inlandsis |
---|
487 | ! If landice_opt>=2, corresponding call is done from surf_land_orchidee |
---|
488 | !**************************************************************************************** |
---|
489 | IF (type_ocean=='couple' .AND. landice_opt .LT. 2) THEN |
---|
490 | ! Compress fraction where run_off_lic is active (here all pctsrf(is_lic)) |
---|
491 | run_off_lic_frac(:)=0.0 |
---|
492 | DO j = 1, knon |
---|
493 | i = knindex(j) |
---|
494 | run_off_lic_frac(j) = pctsrf(i,is_lic) |
---|
495 | ENDDO |
---|
496 | |
---|
497 | CALL cpl_send_landice_fields(itime, knon, knindex, run_off_lic, run_off_lic_frac) |
---|
498 | ENDIF |
---|
499 | |
---|
500 | ! transfer runoff rate [kg/m2/s](!) to physiq for output |
---|
501 | runoff(1:knon)=run_off_lic(1:knon)/dtime |
---|
502 | |
---|
503 | |
---|
504 | !**************************************************************************************** |
---|
505 | ! Etienne: comment these lines because of duplication just below |
---|
506 | ! snow_o=0. |
---|
507 | ! zfra_o = 0. |
---|
508 | ! DO j = 1, knon |
---|
509 | ! i = knindex(j) |
---|
510 | ! snow_o(i) = snow(j) |
---|
511 | ! zfra_o(i) = zfra(j) |
---|
512 | ! ENDDO |
---|
513 | ! |
---|
514 | !**************************************************************************************** |
---|
515 | snow_o=0. |
---|
516 | zfra_o = 0. |
---|
517 | DO j = 1, knon |
---|
518 | i = knindex(j) |
---|
519 | snow_o(i) = snow(j) |
---|
520 | zfra_o(i) = zfra(j) |
---|
521 | ENDDO |
---|
522 | |
---|
523 | |
---|
524 | !albedo SB >>> |
---|
525 | select case(NSW) |
---|
526 | case(2) |
---|
527 | alb_dir(1:knon,1)=alb1(1:knon) |
---|
528 | alb_dir(1:knon,2)=alb2(1:knon) |
---|
529 | case(4) |
---|
530 | alb_dir(1:knon,1)=alb1(1:knon) |
---|
531 | alb_dir(1:knon,2)=alb2(1:knon) |
---|
532 | alb_dir(1:knon,3)=alb2(1:knon) |
---|
533 | alb_dir(1:knon,4)=alb2(1:knon) |
---|
534 | case(6) |
---|
535 | alb_dir(1:knon,1)=alb1(1:knon) |
---|
536 | alb_dir(1:knon,2)=alb1(1:knon) |
---|
537 | alb_dir(1:knon,3)=alb1(1:knon) |
---|
538 | alb_dir(1:knon,4)=alb2(1:knon) |
---|
539 | alb_dir(1:knon,5)=alb2(1:knon) |
---|
540 | alb_dir(1:knon,6)=alb2(1:knon) |
---|
541 | |
---|
542 | IF ((landice_opt .EQ. 1) .AND. (iflag_albcalc .EQ. 2)) THEN |
---|
543 | alb_dir(1:knon,1)=alb6(1:knon,1) |
---|
544 | alb_dir(1:knon,2)=alb6(1:knon,2) |
---|
545 | alb_dir(1:knon,3)=alb6(1:knon,3) |
---|
546 | alb_dir(1:knon,4)=alb6(1:knon,4) |
---|
547 | alb_dir(1:knon,5)=alb6(1:knon,5) |
---|
548 | alb_dir(1:knon,6)=alb6(1:knon,6) |
---|
549 | ENDIF |
---|
550 | |
---|
551 | end select |
---|
552 | alb_dif=alb_dir |
---|
553 | !albedo SB <<< |
---|
554 | |
---|
555 | |
---|
556 | |
---|
557 | |
---|
558 | END SUBROUTINE surf_landice |
---|
559 | ! |
---|
560 | !**************************************************************************************** |
---|
561 | ! |
---|
562 | END MODULE surf_landice_mod |
---|
563 | |
---|
564 | |
---|
565 | |
---|