Skip to content
Closed
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
2 changes: 1 addition & 1 deletion src/ice_shelf/MOM_ice_shelf.F90
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ subroutine shelf_calc_flux(sfc_state_in, fluxes_in, Time, time_step_in, CS)
mass_flux(i,j) = ISS%water_flux(i,j) * ISS%area_shelf_h(i,j)

!Add frazil formation
if (ISS%hmask(i,j) == 1 .or. ISS%hmask(i,j) == 2) &
if (allocated(sfc_state%frazil) .and. ((ISS%hmask(i,j) == 1.) .or. (ISS%hmask(i,j) == 2.))) &
ISS%water_flux(i,j) = ISS%water_flux(i,j) - sfc_state%frazil(i,j) * I_dt_LHF
fluxes%iceshelf_melt(i,j) = ISS%water_flux(i,j)
enddo ; enddo ! i- and j-loops
Expand Down