aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Garlick <pgarlick@tourbillion-technology.com>2019-10-23 11:39:18 +0100
committerPaul Garlick <pgarlick@tourbillion-technology.com>2019-10-23 11:39:18 +0100
commit10f5c0c864ef9b11060e72facf65f8c7c0eafb83 (patch)
tree0a0a32f2da25248c2e36a4185592779aee452681
parent63d2bc30b2954a4be3e65860a52d2aa262291512 (diff)
downloadfullSWOF-utils-10f5c0c864ef9b11060e72facf65f8c7c0eafb83.tar.gz
merge panel loops.
-rwxr-xr-xmakeBoundary.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/makeBoundary.py b/makeBoundary.py
index 2685bd4..d79c280 100755
--- a/makeBoundary.py
+++ b/makeBoundary.py
@@ -192,9 +192,13 @@ elif location == 'top' or location == 'bottom':
xregion = []
zregion = []
+zmin = []
for p in range(num_panels):
+ # identify regions:
xregion.append(xin[marker_ind[p]:marker_ind[p+1]])
zregion.append(zin[marker_ind[p]:marker_ind[p+1]])
+ # identify minimum heights within each panel:
+ zmin.append(zregion[p].min())
# xregion_west = xin[100:281]
# zregion_west = zin[100:281]
@@ -205,11 +209,6 @@ for p in range(num_panels):
# print(zregion)
# print(xin[12:20])
-zmin = []
-for p in range(num_panels):
- # identify minimum heights within each panel:
- zmin.append(zregion[p].min())
-
print(zmin[1])
# channel overtopping height (minimum of left bank and right bank heights):