Skip to content

Commit

Permalink
Merge remote-tracking branch 'olga/ice_dynamics' into iOM4_is_dev
Browse files Browse the repository at this point in the history
  • Loading branch information
MJHarrison-GFDL committed Jul 28, 2023
2 parents 9f56d00 + 9613191 commit 711276d
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/ice_shelf/MOM_ice_shelf_dynamics.F90
Original file line number Diff line number Diff line change
Expand Up @@ -887,10 +887,12 @@ subroutine ice_shelf_solve_outer(CS, ISS, G, US, u_shlf, v_shlf, taudx, taudy, i

do j=G%jsc,G%jec
do i=G%isc,G%iec
if (rhoi_rhow * ISS%h_shelf(i,j) - CS%bed_elev(i,j) > 0) then
float_cond(i,j) = 1.0
CS%ground_frac(i,j) = 1.0
CS%OD_av(i,j) =0.0
if (ISS%hmask(i,j)>0) then
if (rhoi_rhow * ISS%h_shelf(i,j) - CS%bed_elev(i,j) > 0) then
float_cond(i,j) = 1.0
CS%ground_frac(i,j) = 1.0
CS%OD_av(i,j) =0.0
endif
endif
enddo
enddo
Expand Down Expand Up @@ -973,6 +975,7 @@ subroutine ice_shelf_solve_outer(CS, ISS, G, US, u_shlf, v_shlf, taudx, taudy, i
call max_across_PEs(err_init)
endif


u_last(:,:) = u_shlf(:,:) ; v_last(:,:) = v_shlf(:,:)

!! begin loop
Expand All @@ -990,7 +993,8 @@ subroutine ice_shelf_solve_outer(CS, ISS, G, US, u_shlf, v_shlf, taudx, taudy, i
write(mesg,*) "ice_shelf_solve_outer: linear solve done in ",iters," iterations"
call MOM_mesg(mesg, 5)

call calc_shelf_visc(CS, ISS, G, US, u_shlf, v_shlf)

call calc_shelf_visc(CS, ISS, G, US, u_shlf, v_shlf)
call pass_var(CS%ice_visc, G%domain)
call calc_shelf_taub(CS, ISS, G, US, u_shlf, v_shlf)
call pass_var(CS%basal_traction, G%domain)
Expand Down

0 comments on commit 711276d

Please sign in to comment.