[781] | 1 | ! |
---|
| 2 | MODULE surf_landice_mod |
---|
| 3 | |
---|
| 4 | IMPLICIT NONE |
---|
| 5 | |
---|
| 6 | CONTAINS |
---|
| 7 | ! |
---|
| 8 | !**************************************************************************************** |
---|
| 9 | ! |
---|
| 10 | SUBROUTINE surf_landice(itime, dtime, knon, knindex, & |
---|
[1865] | 11 | rlon, rlat, debut, lafin, & |
---|
| 12 | rmu0, lwdownm, albedo, pphi1, & |
---|
[888] | 13 | swnet, lwnet, tsurf, p1lay, & |
---|
[1067] | 14 | cdragh, cdragm, precip_rain, precip_snow, temp_air, spechum, & |
---|
| 15 | AcoefH, AcoefQ, BcoefH, BcoefQ, & |
---|
| 16 | AcoefU, AcoefV, BcoefU, BcoefV, & |
---|
[2240] | 17 | ps, u1, v1, gustiness, rugoro, pctsrf, & |
---|
[888] | 18 | snow, qsurf, qsol, agesno, & |
---|
[2243] | 19 | tsoil, z0m, z0h, SFRWL, alb_dir, alb_dif, evap, fluxsens, fluxlat, & |
---|
[1067] | 20 | tsurf_new, dflux_s, dflux_l, & |
---|
[3900] | 21 | alt, slope, cloudf, & |
---|
[1865] | 22 | snowhgt, qsnow, to_ice, sissnow, & |
---|
| 23 | alb3, runoff, & |
---|
[1067] | 24 | flux_u1, flux_v1) |
---|
[781] | 25 | |
---|
[1067] | 26 | USE dimphy |
---|
[3974] | 27 | USE geometry_mod, ONLY : longitude,latitude |
---|
[3900] | 28 | USE surface_data, ONLY : type_ocean, calice, calsno, landice_opt, iflag_albcalc |
---|
| 29 | USE fonte_neige_mod, ONLY : fonte_neige,run_off_lic,fqcalving_global,ffonte_global,fqfonte_global,runofflic_global |
---|
[1067] | 30 | USE cpl_mod, ONLY : cpl_send_landice_fields |
---|
| 31 | USE calcul_fluxs_mod |
---|
[1334] | 32 | USE phys_output_var_mod |
---|
[2728] | 33 | !FC |
---|
| 34 | USE ioipsl_getin_p_mod, ONLY : getin_p |
---|
| 35 | |
---|
[3792] | 36 | |
---|
| 37 | #ifdef CPP_INLANDSIS |
---|
| 38 | USE surf_inlandsis_mod, ONLY : surf_inlandsis |
---|
| 39 | #endif |
---|
| 40 | |
---|
[1785] | 41 | USE indice_sol_mod |
---|
[1067] | 42 | |
---|
[1785] | 43 | ! INCLUDE "indicesol.h" |
---|
[781] | 44 | INCLUDE "dimsoil.h" |
---|
[793] | 45 | INCLUDE "YOMCST.h" |
---|
| 46 | INCLUDE "clesphys.h" |
---|
[781] | 47 | |
---|
| 48 | ! Input variables |
---|
| 49 | !**************************************************************************************** |
---|
| 50 | INTEGER, INTENT(IN) :: itime, knon |
---|
| 51 | INTEGER, DIMENSION(klon), INTENT(in) :: knindex |
---|
| 52 | REAL, INTENT(in) :: dtime |
---|
[888] | 53 | REAL, DIMENSION(klon), INTENT(IN) :: swnet ! net shortwave radiance |
---|
| 54 | REAL, DIMENSION(klon), INTENT(IN) :: lwnet ! net longwave radiance |
---|
[781] | 55 | REAL, DIMENSION(klon), INTENT(IN) :: tsurf |
---|
| 56 | REAL, DIMENSION(klon), INTENT(IN) :: p1lay |
---|
[1067] | 57 | REAL, DIMENSION(klon), INTENT(IN) :: cdragh, cdragm |
---|
[781] | 58 | REAL, DIMENSION(klon), INTENT(IN) :: precip_rain, precip_snow |
---|
| 59 | REAL, DIMENSION(klon), INTENT(IN) :: temp_air, spechum |
---|
[1067] | 60 | REAL, DIMENSION(klon), INTENT(IN) :: AcoefH, AcoefQ |
---|
| 61 | REAL, DIMENSION(klon), INTENT(IN) :: BcoefH, BcoefQ |
---|
| 62 | REAL, DIMENSION(klon), INTENT(IN) :: AcoefU, AcoefV, BcoefU, BcoefV |
---|
[781] | 63 | REAL, DIMENSION(klon), INTENT(IN) :: ps |
---|
[2240] | 64 | REAL, DIMENSION(klon), INTENT(IN) :: u1, v1, gustiness |
---|
[781] | 65 | REAL, DIMENSION(klon), INTENT(IN) :: rugoro |
---|
| 66 | REAL, DIMENSION(klon,nbsrf), INTENT(IN) :: pctsrf |
---|
| 67 | |
---|
[1865] | 68 | LOGICAL, INTENT(IN) :: debut !true if first step |
---|
| 69 | LOGICAL, INTENT(IN) :: lafin !true if last step |
---|
| 70 | REAL, DIMENSION(klon), INTENT(IN) :: rlon, rlat |
---|
| 71 | REAL, DIMENSION(klon), INTENT(IN) :: rmu0 |
---|
| 72 | REAL, DIMENSION(klon), INTENT(IN) :: lwdownm !ylwdown |
---|
| 73 | REAL, DIMENSION(klon), INTENT(IN) :: albedo !mean albedo |
---|
| 74 | REAL, DIMENSION(klon), INTENT(IN) :: pphi1 |
---|
[3900] | 75 | REAL, DIMENSION(klon), INTENT(IN) :: alt !mean altitude of the grid box |
---|
[1865] | 76 | REAL, DIMENSION(klon), INTENT(IN) :: slope !mean slope in grid box |
---|
| 77 | REAL, DIMENSION(klon), INTENT(IN) :: cloudf !total cloud fraction |
---|
| 78 | |
---|
[781] | 79 | ! In/Output variables |
---|
| 80 | !**************************************************************************************** |
---|
| 81 | REAL, DIMENSION(klon), INTENT(INOUT) :: snow, qsol |
---|
| 82 | REAL, DIMENSION(klon), INTENT(INOUT) :: agesno |
---|
| 83 | REAL, DIMENSION(klon, nsoilmx), INTENT(INOUT) :: tsoil |
---|
| 84 | |
---|
| 85 | ! Output variables |
---|
| 86 | !**************************************************************************************** |
---|
| 87 | REAL, DIMENSION(klon), INTENT(OUT) :: qsurf |
---|
[2243] | 88 | REAL, DIMENSION(klon), INTENT(OUT) :: z0m, z0h |
---|
[2227] | 89 | !albedo SB >>> |
---|
| 90 | ! REAL, DIMENSION(klon), INTENT(OUT) :: alb1 ! new albedo in visible SW interval |
---|
| 91 | ! REAL, DIMENSION(klon), INTENT(OUT) :: alb2 ! new albedo in near IR interval |
---|
[3792] | 92 | REAL, DIMENSION(6), INTENT(IN) :: SFRWL |
---|
| 93 | REAL, DIMENSION(klon,nsw), INTENT(OUT) :: alb_dir,alb_dif |
---|
[2227] | 94 | !albedo SB <<< |
---|
[781] | 95 | REAL, DIMENSION(klon), INTENT(OUT) :: evap, fluxsens, fluxlat |
---|
[888] | 96 | REAL, DIMENSION(klon), INTENT(OUT) :: tsurf_new |
---|
[781] | 97 | REAL, DIMENSION(klon), INTENT(OUT) :: dflux_s, dflux_l |
---|
[1067] | 98 | REAL, DIMENSION(klon), INTENT(OUT) :: flux_u1, flux_v1 |
---|
[781] | 99 | |
---|
[1865] | 100 | REAL, DIMENSION(klon), INTENT(OUT) :: alb3 |
---|
| 101 | REAL, DIMENSION(klon), INTENT(OUT) :: qsnow !column water in snow [kg/m2] |
---|
| 102 | REAL, DIMENSION(klon), INTENT(OUT) :: snowhgt !Snow height (m) |
---|
| 103 | REAL, DIMENSION(klon), INTENT(OUT) :: to_ice |
---|
| 104 | REAL, DIMENSION(klon), INTENT(OUT) :: sissnow |
---|
| 105 | REAL, DIMENSION(klon), INTENT(OUT) :: runoff !Land ice runoff |
---|
| 106 | |
---|
| 107 | |
---|
[781] | 108 | ! Local variables |
---|
| 109 | !**************************************************************************************** |
---|
| 110 | REAL, DIMENSION(klon) :: soilcap, soilflux |
---|
| 111 | REAL, DIMENSION(klon) :: cal, beta, dif_grnd |
---|
| 112 | REAL, DIMENSION(klon) :: zfra, alb_neig |
---|
[888] | 113 | REAL, DIMENSION(klon) :: radsol |
---|
[3792] | 114 | REAL, DIMENSION(klon) :: u0, v0, u1_lay, v1_lay, ustar |
---|
| 115 | INTEGER :: i,j,nt |
---|
[3900] | 116 | REAL, DIMENSION(klon) :: fqfonte,ffonte |
---|
[1865] | 117 | REAL, DIMENSION(klon) :: emis_new !Emissivity |
---|
| 118 | REAL, DIMENSION(klon) :: swdown,lwdown |
---|
[3900] | 119 | REAL, DIMENSION(klon) :: precip_snow_adv, snow_adv !Snow Drift precip./advection (not used in inlandsis) |
---|
| 120 | REAL, DIMENSION(klon) :: erod !erosion of surface snow (flux, kg/m2/s like evap) |
---|
| 121 | REAL, DIMENSION(klon) :: zsl_height, wind_velo !surface layer height, wind spd |
---|
[1865] | 122 | REAL, DIMENSION(klon) :: dens_air, snow_cont_air !air density; snow content air |
---|
| 123 | REAL, DIMENSION(klon) :: alb_soil !albedo of underlying ice |
---|
| 124 | REAL, DIMENSION(klon) :: pexner !Exner potential |
---|
| 125 | REAL :: pref |
---|
[3792] | 126 | REAL, DIMENSION(klon,nsoilmx) :: tsoil0 !modif |
---|
| 127 | REAL :: dtis ! subtimestep |
---|
| 128 | LOGICAL :: debut_is, lafin_is ! debut and lafin for inlandsis |
---|
[1865] | 129 | |
---|
| 130 | CHARACTER (len = 20) :: modname = 'surf_landice' |
---|
| 131 | CHARACTER (len = 80) :: abort_message |
---|
| 132 | |
---|
[2728] | 133 | |
---|
[3900] | 134 | REAL,DIMENSION(klon) :: alb1,alb2 |
---|
| 135 | REAL, DIMENSION (klon,6) :: alb6 |
---|
[781] | 136 | ! End definition |
---|
| 137 | !**************************************************************************************** |
---|
[2728] | 138 | !FC |
---|
| 139 | !FC |
---|
| 140 | REAL,SAVE :: alb_vis_sno_lic |
---|
| 141 | !$OMP THREADPRIVATE(alb_vis_sno_lic) |
---|
| 142 | REAL,SAVE :: alb_nir_sno_lic |
---|
| 143 | !$OMP THREADPRIVATE(alb_nir_sno_lic) |
---|
| 144 | LOGICAL, SAVE :: firstcall = .TRUE. |
---|
| 145 | !$OMP THREADPRIVATE(firstcall) |
---|
| 146 | |
---|
| 147 | |
---|
[3792] | 148 | !FC firtscall initializations |
---|
| 149 | !****************************************************************************************** |
---|
[2728] | 150 | IF (firstcall) THEN |
---|
| 151 | alb_vis_sno_lic=0.77 |
---|
| 152 | CALL getin_p('alb_vis_sno_lic',alb_vis_sno_lic) |
---|
| 153 | PRINT*, 'alb_vis_sno_lic',alb_vis_sno_lic |
---|
| 154 | alb_nir_sno_lic=0.77 |
---|
| 155 | CALL getin_p('alb_nir_sno_lic',alb_nir_sno_lic) |
---|
| 156 | PRINT*, 'alb_nir_sno_lic',alb_nir_sno_lic |
---|
[3792] | 157 | |
---|
| 158 | ! z0m=1.e-3 |
---|
| 159 | ! z0h = z0m |
---|
[2728] | 160 | firstcall=.false. |
---|
| 161 | ENDIF |
---|
[3792] | 162 | !****************************************************************************************** |
---|
| 163 | |
---|
[781] | 164 | ! Initialize output variables |
---|
[1865] | 165 | alb3(:) = 999999. |
---|
[888] | 166 | alb2(:) = 999999. |
---|
| 167 | alb1(:) = 999999. |
---|
[1865] | 168 | |
---|
| 169 | runoff(:) = 0. |
---|
[888] | 170 | !**************************************************************************************** |
---|
| 171 | ! Calculate total absorbed radiance at surface |
---|
| 172 | ! |
---|
| 173 | !**************************************************************************************** |
---|
| 174 | radsol(:) = 0.0 |
---|
| 175 | radsol(1:knon) = swnet(1:knon) + lwnet(1:knon) |
---|
[781] | 176 | |
---|
| 177 | !**************************************************************************************** |
---|
[3792] | 178 | ! landice_opt = 0 : soil_model, calcul_flux, fonte_neige, ... |
---|
[3901] | 179 | ! landice_opt = 1 : prepare and call INterace Lmdz SISvat (INLANDSIS) |
---|
[1865] | 180 | !**************************************************************************************** |
---|
[3792] | 181 | |
---|
| 182 | |
---|
| 183 | IF (landice_opt .EQ. 1) THEN |
---|
| 184 | |
---|
[3901] | 185 | !**************************************************************************************** |
---|
[3792] | 186 | ! CALL to INLANDSIS interface |
---|
| 187 | !**************************************************************************************** |
---|
| 188 | #ifdef CPP_INLANDSIS |
---|
| 189 | |
---|
| 190 | debut_is=debut |
---|
| 191 | lafin_is=.false. |
---|
| 192 | ! Suppose zero surface speed |
---|
| 193 | u0(:) = 0.0 |
---|
| 194 | v0(:) = 0.0 |
---|
| 195 | |
---|
| 196 | |
---|
| 197 | CALL calcul_flux_wind(knon, dtime, & |
---|
| 198 | u0, v0, u1, v1, gustiness, cdragm, & |
---|
| 199 | AcoefU, AcoefV, BcoefU, BcoefV, & |
---|
| 200 | p1lay, temp_air, & |
---|
| 201 | flux_u1, flux_v1) |
---|
| 202 | |
---|
| 203 | |
---|
| 204 | ! Set constants and compute some input for SISVAT |
---|
| 205 | ! = 1000 hPa |
---|
| 206 | ! and calculate incoming flux for SW and LW interval: swdown, lwdown |
---|
| 207 | swdown(:) = 0.0 |
---|
| 208 | lwdown(:) = 0.0 |
---|
[3900] | 209 | snow_cont_air(:) = 0. ! the snow content in air is not a prognostic variable of the model |
---|
[3792] | 210 | alb_soil(:) = 0.4 ! before albedo(:) but here it is the ice albedo that we have to set |
---|
| 211 | ustar(:) = 0. |
---|
| 212 | pref = 100000. |
---|
| 213 | DO i = 1, knon |
---|
| 214 | swdown(i) = swnet(i)/(1-albedo(i)) |
---|
| 215 | lwdown(i) = lwdownm(i) |
---|
| 216 | wind_velo(i) = u1(i)**2 + v1(i)**2 |
---|
| 217 | wind_velo(i) = wind_velo(i)**0.5 |
---|
| 218 | pexner(i) = (p1lay(i)/pref)**(RD/RCPD) |
---|
| 219 | dens_air(i) = p1lay(i)/RD/temp_air(i) ! dry air density |
---|
| 220 | zsl_height(i) = pphi1(i)/RG |
---|
| 221 | tsoil0(i,:) = tsoil(i,:) |
---|
| 222 | ustar(i)= (cdragm(i)*(wind_velo(i)**2))**0.5 |
---|
| 223 | END DO |
---|
| 224 | |
---|
| 225 | |
---|
| 226 | |
---|
[3900] | 227 | dtis=dtime |
---|
[3792] | 228 | |
---|
[3900] | 229 | IF (lafin) THEN |
---|
[3792] | 230 | lafin_is=.true. |
---|
| 231 | END IF |
---|
| 232 | |
---|
[3900] | 233 | CALL surf_inlandsis(knon, rlon, rlat, knindex, itime, dtis, debut_is, lafin_is,& |
---|
| 234 | rmu0, swdown, lwdown, albedo, pexner, ps, p1lay, precip_rain, precip_snow, & |
---|
| 235 | zsl_height, wind_velo, ustar, temp_air, dens_air, spechum, tsurf,& |
---|
| 236 | rugoro, snow_cont_air, alb_soil, alt, slope, cloudf, & |
---|
| 237 | radsol, qsol, tsoil0, snow, zfra, snowhgt, qsnow, to_ice, sissnow,agesno, & |
---|
[3792] | 238 | AcoefH, AcoefQ, BcoefH, BcoefQ, cdragm, cdragh, & |
---|
[3900] | 239 | run_off_lic, fqfonte, ffonte, evap, erod, fluxsens, fluxlat,dflux_s, dflux_l, & |
---|
| 240 | tsurf_new, alb1, alb2, alb3, alb6, & |
---|
| 241 | emis_new, z0m, z0h, qsurf) |
---|
[3792] | 242 | |
---|
[3900] | 243 | debut_is=.false. |
---|
[3792] | 244 | |
---|
| 245 | |
---|
[3900] | 246 | ! Treatment of snow melting and calving |
---|
[3792] | 247 | |
---|
[3900] | 248 | ! for consistency with standard LMDZ, add calving to run_off_lic |
---|
| 249 | run_off_lic(:)=run_off_lic(:) + to_ice(:) |
---|
| 250 | |
---|
| 251 | DO i = 1, knon |
---|
| 252 | ffonte_global(knindex(i),is_lic) = ffonte(i) |
---|
| 253 | fqfonte_global(knindex(i),is_lic) = fqfonte(i)! net melting= melting - refreezing |
---|
| 254 | fqcalving_global(knindex(i),is_lic) = to_ice(i) ! flux |
---|
| 255 | runofflic_global(knindex(i)) = run_off_lic(i) |
---|
| 256 | ENDDO |
---|
| 257 | ! Here, we assume that the calving term is equal to the to_ice term |
---|
| 258 | ! (no ice accumulation) |
---|
| 259 | |
---|
| 260 | |
---|
[3792] | 261 | #else |
---|
[3901] | 262 | abort_message='Pb de coherence: landice_opt = 1 mais CPP_INLANDSIS = .false.' |
---|
[3792] | 263 | CALL abort_physic(modname,abort_message,1) |
---|
| 264 | #endif |
---|
| 265 | |
---|
| 266 | |
---|
| 267 | |
---|
| 268 | ELSE |
---|
| 269 | |
---|
| 270 | !**************************************************************************************** |
---|
[781] | 271 | ! Soil calculations |
---|
| 272 | ! |
---|
| 273 | !**************************************************************************************** |
---|
[3780] | 274 | |
---|
| 275 | ! EV: use calbeta |
---|
| 276 | CALL calbeta(dtime, is_lic, knon, snow, qsol, beta, cal, dif_grnd) |
---|
| 277 | |
---|
| 278 | |
---|
| 279 | ! use soil model and recalculate properly cal |
---|
[781] | 280 | IF (soil_model) THEN |
---|
[3974] | 281 | CALL soil(dtime, is_lic, knon, snow, tsurf, qsol, & |
---|
| 282 | & longitude(knindex(1:knon)), latitude(knindex(1:knon)), tsoil, soilcap, soilflux) |
---|
[781] | 283 | cal(1:knon) = RCPD / soilcap(1:knon) |
---|
| 284 | radsol(1:knon) = radsol(1:knon) + soilflux(1:knon) |
---|
| 285 | ELSE |
---|
| 286 | cal = RCPD * calice |
---|
| 287 | WHERE (snow > 0.0) cal = RCPD * calsno |
---|
| 288 | ENDIF |
---|
| 289 | |
---|
| 290 | |
---|
| 291 | !**************************************************************************************** |
---|
| 292 | ! Calulate fluxes |
---|
| 293 | ! |
---|
| 294 | !**************************************************************************************** |
---|
[3792] | 295 | ! beta(:) = 1.0 |
---|
| 296 | ! dif_grnd(:) = 0.0 |
---|
[781] | 297 | |
---|
[1067] | 298 | ! Suppose zero surface speed |
---|
| 299 | u0(:)=0.0 |
---|
| 300 | v0(:)=0.0 |
---|
| 301 | u1_lay(:) = u1(:) - u0(:) |
---|
| 302 | v1_lay(:) = v1(:) - v0(:) |
---|
| 303 | |
---|
[781] | 304 | CALL calcul_fluxs(knon, is_lic, dtime, & |
---|
[2254] | 305 | tsurf, p1lay, cal, beta, cdragh, cdragh, ps, & |
---|
[781] | 306 | precip_rain, precip_snow, snow, qsurf, & |
---|
[2240] | 307 | radsol, dif_grnd, temp_air, spechum, u1_lay, v1_lay, gustiness, & |
---|
[2254] | 308 | 1.,AcoefH, AcoefQ, BcoefH, BcoefQ, & |
---|
[781] | 309 | tsurf_new, evap, fluxlat, fluxsens, dflux_s, dflux_l) |
---|
| 310 | |
---|
[1067] | 311 | CALL calcul_flux_wind(knon, dtime, & |
---|
[2240] | 312 | u0, v0, u1, v1, gustiness, cdragm, & |
---|
[1067] | 313 | AcoefU, AcoefV, BcoefU, BcoefV, & |
---|
| 314 | p1lay, temp_air, & |
---|
| 315 | flux_u1, flux_v1) |
---|
[781] | 316 | |
---|
| 317 | !**************************************************************************************** |
---|
| 318 | ! Calculate snow height, age, run-off,.. |
---|
| 319 | ! |
---|
| 320 | !**************************************************************************************** |
---|
[3792] | 321 | CALL fonte_neige(knon, is_lic, knindex, dtime, & |
---|
[781] | 322 | tsurf, precip_rain, precip_snow, & |
---|
| 323 | snow, qsol, tsurf_new, evap) |
---|
| 324 | |
---|
| 325 | |
---|
| 326 | !**************************************************************************************** |
---|
| 327 | ! Calculate albedo |
---|
| 328 | ! |
---|
| 329 | !**************************************************************************************** |
---|
| 330 | CALL albsno(klon,knon,dtime,agesno(:),alb_neig(:), precip_snow(:)) |
---|
[3780] | 331 | |
---|
[781] | 332 | WHERE (snow(1 : knon) .LT. 0.0001) agesno(1 : knon) = 0. |
---|
| 333 | zfra(1:knon) = MAX(0.0,MIN(1.0,snow(1:knon)/(snow(1:knon)+10.0))) |
---|
[888] | 334 | alb1(1:knon) = alb_neig(1:knon)*zfra(1:knon) + & |
---|
[781] | 335 | 0.6 * (1.0-zfra(1:knon)) |
---|
| 336 | ! |
---|
| 337 | !IM: plusieurs choix/tests sur l'albedo des "glaciers continentaux" |
---|
[888] | 338 | ! alb1(1 : knon) = 0.6 !IM cf FH/GK |
---|
| 339 | ! alb1(1 : knon) = 0.82 |
---|
| 340 | ! alb1(1 : knon) = 0.77 !211003 Ksta0.77 |
---|
| 341 | ! alb1(1 : knon) = 0.8 !KstaTER0.8 & LMD_ARMIP5 |
---|
[781] | 342 | !IM: KstaTER0.77 & LMD_ARMIP6 |
---|
| 343 | |
---|
[3780] | 344 | ! Attantion: alb1 and alb2 are not the same! |
---|
[2728] | 345 | alb1(1:knon) = alb_vis_sno_lic |
---|
| 346 | alb2(1:knon) = alb_nir_sno_lic |
---|
[781] | 347 | |
---|
| 348 | |
---|
| 349 | !**************************************************************************************** |
---|
| 350 | ! Rugosity |
---|
| 351 | ! |
---|
| 352 | !**************************************************************************************** |
---|
[2243] | 353 | z0m=1.e-3 |
---|
| 354 | z0h = z0m |
---|
| 355 | z0m = SQRT(z0m**2+rugoro**2) |
---|
| 356 | |
---|
[781] | 357 | |
---|
[1865] | 358 | |
---|
[3792] | 359 | END IF ! landice_opt |
---|
| 360 | |
---|
| 361 | |
---|
[781] | 362 | !**************************************************************************************** |
---|
| 363 | ! Send run-off on land-ice to coupler if coupled ocean. |
---|
[3903] | 364 | ! run_off_lic has been calculated in fonte_neige or surf_inlandsis |
---|
[781] | 365 | ! |
---|
| 366 | !**************************************************************************************** |
---|
[996] | 367 | IF (type_ocean=='couple') THEN |
---|
[781] | 368 | CALL cpl_send_landice_fields(itime, knon, knindex, run_off_lic) |
---|
| 369 | ENDIF |
---|
[1865] | 370 | |
---|
| 371 | ! transfer runoff rate [kg/m2/s](!) to physiq for output |
---|
| 372 | runoff(1:knon)=run_off_lic(1:knon)/dtime |
---|
| 373 | |
---|
[1334] | 374 | |
---|
| 375 | !**************************************************************************************** |
---|
[3792] | 376 | ! Etienne: comment these lines because of duplication just below |
---|
| 377 | ! snow_o=0. |
---|
| 378 | ! zfra_o = 0. |
---|
| 379 | ! DO j = 1, knon |
---|
| 380 | ! i = knindex(j) |
---|
| 381 | ! snow_o(i) = snow(j) |
---|
| 382 | ! zfra_o(i) = zfra(j) |
---|
| 383 | ! ENDDO |
---|
| 384 | ! |
---|
[1403] | 385 | !**************************************************************************************** |
---|
| 386 | snow_o=0. |
---|
| 387 | zfra_o = 0. |
---|
| 388 | DO j = 1, knon |
---|
| 389 | i = knindex(j) |
---|
| 390 | snow_o(i) = snow(j) |
---|
| 391 | zfra_o(i) = zfra(j) |
---|
| 392 | ENDDO |
---|
| 393 | |
---|
| 394 | |
---|
[2227] | 395 | !albedo SB >>> |
---|
| 396 | select case(NSW) |
---|
| 397 | case(2) |
---|
| 398 | alb_dir(1:knon,1)=alb1(1:knon) |
---|
| 399 | alb_dir(1:knon,2)=alb2(1:knon) |
---|
| 400 | case(4) |
---|
| 401 | alb_dir(1:knon,1)=alb1(1:knon) |
---|
| 402 | alb_dir(1:knon,2)=alb2(1:knon) |
---|
| 403 | alb_dir(1:knon,3)=alb2(1:knon) |
---|
| 404 | alb_dir(1:knon,4)=alb2(1:knon) |
---|
| 405 | case(6) |
---|
| 406 | alb_dir(1:knon,1)=alb1(1:knon) |
---|
| 407 | alb_dir(1:knon,2)=alb1(1:knon) |
---|
| 408 | alb_dir(1:knon,3)=alb1(1:knon) |
---|
| 409 | alb_dir(1:knon,4)=alb2(1:knon) |
---|
| 410 | alb_dir(1:knon,5)=alb2(1:knon) |
---|
| 411 | alb_dir(1:knon,6)=alb2(1:knon) |
---|
[3900] | 412 | |
---|
[3901] | 413 | IF ((landice_opt .EQ. 1) .AND. (iflag_albcalc .EQ. 2)) THEN |
---|
[3900] | 414 | alb_dir(1:knon,1)=alb6(1:knon,1) |
---|
| 415 | alb_dir(1:knon,2)=alb6(1:knon,2) |
---|
| 416 | alb_dir(1:knon,3)=alb6(1:knon,3) |
---|
| 417 | alb_dir(1:knon,4)=alb6(1:knon,4) |
---|
| 418 | alb_dir(1:knon,5)=alb6(1:knon,5) |
---|
| 419 | alb_dir(1:knon,6)=alb6(1:knon,6) |
---|
| 420 | ENDIF |
---|
| 421 | |
---|
[2227] | 422 | end select |
---|
| 423 | alb_dif=alb_dir |
---|
| 424 | !albedo SB <<< |
---|
| 425 | |
---|
[3900] | 426 | |
---|
| 427 | |
---|
[2227] | 428 | |
---|
[781] | 429 | END SUBROUTINE surf_landice |
---|
| 430 | ! |
---|
| 431 | !**************************************************************************************** |
---|
| 432 | ! |
---|
| 433 | END MODULE surf_landice_mod |
---|
| 434 | |
---|
| 435 | |
---|
| 436 | |
---|