Skip to content

Commit

Permalink
Merge pull request mom-ocean#1338 from OlgaSergienko/ice_dynamics
Browse files Browse the repository at this point in the history
dynamic ice shelf
  • Loading branch information
Hallberg-NOAA authored Mar 18, 2021
2 parents 8dd9072 + edc15f6 commit 3193ab0
Show file tree
Hide file tree
Showing 3 changed files with 446 additions and 300 deletions.
11 changes: 11 additions & 0 deletions src/ice_shelf/MOM_ice_shelf.F90
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,17 @@ subroutine shelf_calc_flux(sfc_state_in, fluxes_in, Time, time_step, CS)
endif
endif

! Melting has been computed, now is time to update thickness and mass with dynamic ice shelf
if (CS%active_shelf_dynamics) then
call change_thickness_using_melt(ISS, G, US, US%s_to_T*time_step, fluxes, CS%density_ice, CS%debug)

if (CS%debug) then
call hchksum(ISS%h_shelf, "h_shelf after change thickness using melt", G%HI, haloshift=0, scale=US%Z_to_m)
call hchksum(ISS%mass_shelf, "mass_shelf after change thickness using melt", G%HI, haloshift=0, &
scale=US%RZ_to_kg_m2)
endif
endif

if (CS%debug) call MOM_forcing_chksum("Before add shelf flux", fluxes, G, CS%US, haloshift=0)

call add_shelf_flux(G, US, CS, sfc_state, fluxes)
Expand Down
Loading

0 comments on commit 3193ab0

Please sign in to comment.