@@ -11,7 +11,7 @@ module coupler_indices
1111 use MOM_grid, only : ocean_grid_type
1212 use MOM_surface_forcing, only: ice_ocean_boundary_type
1313 ! MOM functions
14- use MOM_domains, only : pass_var
14+ use MOM_domains, only : pass_var, AGRID
1515 use ocean_model_mod, only : ocean_public_type
1616
1717 implicit none
@@ -332,36 +332,38 @@ subroutine fill_ice_ocean_bnd(ice_ocean_boundary, grid, x2o_o, ind)
332332 k = k + 1 ! Increment position within gindex
333333 ig = i + grid% idg_offset
334334 ! zonal wind stress (taux)
335- ice_ocean_boundary% u_flux(i,j ) = x2o_o (ind% x2o_Foxx_taux,k)
335+ ice_ocean_boundary% u_flux(ig,jg ) = 0.0 ! x20_o (ind%x2o_Foxx_taux,k)
336336 ! meridional wind stress (tauy)
337- ice_ocean_boundary% v_flux(i,j ) = x2o_o (ind% x2o_Foxx_tauy,k)
337+ ice_ocean_boundary% v_flux(ig,jg ) = 0.0 ! x20_o (ind%x2o_Foxx_tauy,k)
338338 ! sensible heat flux
339- ice_ocean_boundary% t_flux(i,j ) = x2o_o (ind% x2o_Foxx_sen,k)
339+ ice_ocean_boundary% t_flux(ig,jg ) = 0.0 ! x20_o (ind%x2o_Foxx_sen,k)
340340 ! salt flux
341- ice_ocean_boundary% salt_flux(i,j ) = x2o_o (ind% x2o_Fioi_salt,k)
341+ ice_ocean_boundary% salt_flux(ig,jg ) = 0.0 ! x20_o (ind%x2o_Fioi_salt,k)
342342 ! heat flux from snow & ice melt
343- ice_ocean_boundary% calving_hflx(i,j ) = x2o_o (ind% x2o_Fioi_melth,k)
343+ ice_ocean_boundary% calving_hflx(ig,jg ) = 0.0 ! x20_o (ind%x2o_Fioi_melth,k)
344344 ! snow melt flux
345- ice_ocean_boundary% fprec(i,j ) = x2o_o (ind% x2o_Fioi_meltw,k)
345+ ice_ocean_boundary% fprec(ig,jg ) = 0.0 ! x20_o (ind%x2o_Fioi_meltw,k)
346346 ! river runoff flux
347- ice_ocean_boundary% runoff(i,j ) = x2o_o (ind% x2o_Foxx_rofl,k)
347+ ice_ocean_boundary% runoff(ig,jg ) = 0.0 ! x20_o (ind%x2o_Foxx_rofl,k)
348348 ! ice runoff flux
349- ice_ocean_boundary% calving(i,j ) = x2o_o (ind% x2o_Foxx_rofi,k)
349+ ice_ocean_boundary% calving(ig,jg ) = 0.0 ! x20_o (ind%x2o_Foxx_rofi,k)
350350 ! liquid precipitation (rain)
351- ice_ocean_boundary% lprec(i,j ) = x2o_o (ind% x2o_Faxa_rain,k)
351+ ice_ocean_boundary% lprec(ig,jg ) = 0.0 ! x20_o (ind%x2o_Faxa_rain,k)
352352 ! froze precipitation (snow)
353- ice_ocean_boundary% fprec(i,j ) = x2o_o (ind% x2o_Faxa_snow,k)
353+ ice_ocean_boundary% fprec(ig,jg ) = 0.0 ! x20_o (ind%x2o_Faxa_snow,k)
354354 ! !!!!!! LONGWAVE NEEDS TO BE FIXED !!!!!!!
355355 ! longwave radiation (up)
356- ice_ocean_boundary% lw_flux(i,j ) = x2o_o (k,ind% x2o_Foxx_lwup)
356+ ice_ocean_boundary% lw_flux(ig,jg ) = 0.0 ! x20_o (k,ind%x2o_Foxx_lwup)
357357 ! longwave radiation (down)
358- ice_ocean_boundary% lw_flux(i,j ) = x2o_o (k,ind% x2o_Faxa_lwdn)
358+ ice_ocean_boundary% lw_flux(ig,jg ) = 0.0 ! x20_o (k,ind%x2o_Faxa_lwdn)
359359 ! !!!!!! SHORTWAVE NEEDS TO BE COMBINED !!!!!!!
360360 ! net short-wave heat flux
361- ice_ocean_boundary% u_flux(i,j ) = x2o_o (k,ind% x2o_Foxx_swnet)
361+ ice_ocean_boundary% u_flux(ig,jg ) = 0.0 ! x20_o (k,ind%x2o_Foxx_swnet)
362362 enddo
363363 enddo
364364
365+ ice_ocean_boundary% wind_stagger = AGRID
366+
365367 end subroutine fill_ice_ocean_bnd
366368
367369end module coupler_indices
0 commit comments