aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Garlick <pgarlick@tourbillion-technology.com>2019-10-23 11:34:17 +0100
committerPaul Garlick <pgarlick@tourbillion-technology.com>2019-10-23 11:34:17 +0100
commit63d2bc30b2954a4be3e65860a52d2aa262291512 (patch)
tree7d0ea8e544d2cfe35a8e8b64e2f24c2bf5f24083
parent80efe27d7e04687ea95608d0be9814e8234dffe0 (diff)
downloadfullSWOF-utils-63d2bc30b2954a4be3e65860a52d2aa262291512.tar.gz
use panel index to find panel identifier of part-filled panel.
-rwxr-xr-xmakeBoundary.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/makeBoundary.py b/makeBoundary.py
index 639160f..2685bd4 100755
--- a/makeBoundary.py
+++ b/makeBoundary.py
@@ -92,7 +92,7 @@ def save_bc():
if csa[ind_z] == 0:
# wall boundary condition
f.write('{:6.2f} {:>2}\n'.format(xitem, 2))
- elif panel_x == ind_p:
+ elif panel_x == panel[ind_p]:
# imposed discharge within part-filled panel
f.write('{:6.2f} {:>2} {:10.6f} {:9.6f}\n'.format(
xitem, 5,