From 63d2bc30b2954a4be3e65860a52d2aa262291512 Mon Sep 17 00:00:00 2001 From: Paul Garlick Date: Wed, 23 Oct 2019 11:34:17 +0100 Subject: use panel index to find panel identifier of part-filled panel. --- makeBoundary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit