Skip to content
Open
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
14 changes: 12 additions & 2 deletions src/ice_maEVP.F90
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,12 @@ subroutine stress_tensor_m(ice, partit, mesh)
if (ulevels(elem) > 1) cycle

msum=sum(m_ice(elnodes))*val3
if(msum<=0.01_WP) cycle !DS
if(msum<=0.01_WP) then
sigma11(elem) = 0.0_WP
sigma22(elem) = 0.0_WP
sigma12(elem) = 0.0_WP
cycle
end if
asum=sum(a_ice(elnodes))*val3

dx=gradient_sca(1:3,elem)
Expand Down Expand Up @@ -1061,7 +1066,12 @@ subroutine stress_tensor_a(ice, partit, mesh)
elnodes=elem2D_nodes(:,elem)

msum=sum(m_ice(elnodes))*val3
if(msum<=0.01_WP) cycle !DS
if(msum<=0.01_WP) then
sigma11(elem) = 0.0_WP
sigma22(elem) = 0.0_WP
sigma12(elem) = 0.0_WP
cycle
end if
asum=sum(a_ice(elnodes))*val3

dx=gradient_sca(1:3,elem)
Expand Down
Loading