Skip to content

Commit

Permalink
FMA fix associated with enforcement of max allowed ice-shelf surface …
Browse files Browse the repository at this point in the history
…slope
  • Loading branch information
alex-huth committed Sep 17, 2024
1 parent 85083ad commit 54fdbbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ice_shelf/MOM_ice_shelf_dynamics.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2447,7 +2447,7 @@ subroutine calc_shelf_driving_stress(CS, ISS, G, US, taudx, taudy, OD)
endif

if (CS%max_surface_slope>0) then
scale = min(CS%max_surface_slope/sqrt(sx**2+sy**2),1.0)
scale = min(CS%max_surface_slope/sqrt((sx**2)+(sy**2)),1.0)
sx = scale*sx; sy = scale*sy
endif

Expand Down

0 comments on commit 54fdbbf

Please sign in to comment.