diff options
author | Paul Garlick <pgarlick@tourbillion-technology.com> | 2019-10-23 11:34:17 +0100 |
---|---|---|
committer | Paul Garlick <pgarlick@tourbillion-technology.com> | 2019-10-23 11:34:17 +0100 |
commit | 63d2bc30b2954a4be3e65860a52d2aa262291512 (patch) | |
tree | 7d0ea8e544d2cfe35a8e8b64e2f24c2bf5f24083 | |
parent | 80efe27d7e04687ea95608d0be9814e8234dffe0 (diff) | |
download | fullSWOF-utils-63d2bc30b2954a4be3e65860a52d2aa262291512.tar.gz |
use panel index to find panel identifier of part-filled panel.
-rwxr-xr-x | makeBoundary.py | 2 |
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, |