aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Garlick <pgarlick@tourbillion-technology.com>2019-10-14 12:07:52 +0100
committerPaul Garlick <pgarlick@tourbillion-technology.com>2019-10-14 12:07:52 +0100
commitfe0db16806da76a18b4f9a567f3e044c6a166b91 (patch)
treebea504c3516b0dab2015975f02684b697f6012b1
parentb4ea3eb3004d858b63b1ec84426499aebe0de8cd (diff)
downloadfullSWOF-utils-fe0db16806da76a18b4f9a567f3e044c6a166b91.tar.gz
calculate maximum height in channel.
-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