Skip to content

Commit d37d6d0

Browse files
SierdCopilot
andauthored
Update aeolis/avalanching.py
copilot suggestion to filter for ne Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent b7c1704 commit d37d6d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aeolis/avalanching.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def avalanche_loop(zb, zne, ds, dn, nx, ny, E, max_iter_ava, tan_dyn):
255255
q_in = (inc_west + inc_east + inc_north + inc_south)
256256

257257
# # check mass balance in the presence of non-erodible layer
258-
if np.any((E * (q_in - q_out)) < (zne-zb)):
258+
if np.any(zb + E * (q_in - q_out) < zne):
259259
# update bed level with non-erodible layer limit
260260
# this will effectively shut down further avalanching from the cells concerned
261261
# because zb will equal zne there in the next iteration

0 commit comments

Comments
 (0)