Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions full/ice_ocean_flux_exchange.F90
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ subroutine ice_ocean_flux_exchange_init(Time, Ice, Ocean, Ocean_state, ice_ocean
if (associated(Ice%mass_berg)) then
allocate( ice_ocean_boundary%mass_berg (is:ie,js:je) ) ; ice_ocean_boundary%mass_berg = 0.0
endif
if (associated(Ice%salt_left_behind)) then
allocate( ice_ocean_boundary%excess_salt(is:ie,js:je) ) ; ice_ocean_boundary%excess_salt = 0.0
endif
! Copy the stagger indication variables from the ice processors the ocean
! PEs and vice versa. The defaults are large negative numbers, so the
! global max here picks out only values that have been set on active PEs.
Expand Down Expand Up @@ -313,6 +316,9 @@ subroutine flux_ice_to_ocean ( Ice, Ocean, Ice_Ocean_Boundary )
if(ASSOCIATED(Ice_Ocean_Boundary%q_flux) ) call flux_ice_to_ocean_redistribute( Ice, Ocean, &
Ice%flux_q, Ice_Ocean_Boundary%q_flux, Ice_Ocean_Boundary%xtype, do_area_weighted_flux )

if(ASSOCIATED(Ice_Ocean_Boundary%excess_salt) ) call flux_ice_to_ocean_redistribute( Ice, Ocean, &
Ice%salt_left_behind, Ice_Ocean_Boundary%excess_salt, Ice_Ocean_Boundary%xtype, do_area_weighted_flux )

call fms_mpp_clock_end(fluxIceOceanClock)
call fms_mpp_clock_end(cplOcnClock)
!-----------------------------------------------------------------------
Expand Down
Loading