Skip to content

Commit

Permalink
Minor modif to v_i calculation in seabed_stress_factor_prob to preven…
Browse files Browse the repository at this point in the history
…t rare instability
  • Loading branch information
JFLemieux73 committed Jan 19, 2023
1 parent 79d22b5 commit 6ce76f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cicecore/cicedyn/dynamics/ice_dyn_shared.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1482,7 +1482,7 @@ subroutine seabed_stress_factor_prob (nx_block, ny_block, &
do n =1, ncat
v_i = v_i + vcat(n)**2 / (max(acat(n), puny))
enddo
v_i = v_i - m_i**2
v_i = max((v_i - m_i**2), puny)

mu_i = log(m_i/sqrt(c1 + v_i/m_i**2)) ! parameters for the log-normal
sigma_i = sqrt(log(c1 + v_i/m_i**2))
Expand Down

0 comments on commit 6ce76f1

Please sign in to comment.