aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmakeBoundary.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/makeBoundary.py b/makeBoundary.py
index 358bd29..d8c4c98 100755
--- a/makeBoundary.py
+++ b/makeBoundary.py
@@ -110,8 +110,11 @@ for p in range(num_panels):
# print(zregion)
# print(xin[12:20])
-zmin = zregion[channel].min() # minimum height
-zmax = zregion[channel].max()-ztol # overtopping height
+# minimum height in channel:
+zmin = zregion[channel].min()
+# overtopping height (minimum of left bank and right bank height):
+zmax = min(zregion[channel][0], zregion[channel][-1]) - ztol
+
zmax_west = zmax
zmax_east = zmax