aboutsummaryrefslogtreecommitdiff
path: root/makeBoundary.py
diff options
context:
space:
mode:
authorPaul Garlick <pgarlick@tourbillion-technology.com>2019-10-23 17:33:46 +0100
committerPaul Garlick <pgarlick@tourbillion-technology.com>2019-10-23 17:33:46 +0100
commit4e4ee0747aef44703b6658ede489a54ae102f01d (patch)
tree71690172d4e4775b79439c8dd215bf42c9f16762 /makeBoundary.py
parent10f5c0c864ef9b11060e72facf65f8c7c0eafb83 (diff)
downloadfullSWOF-utils-4e4ee0747aef44703b6658ede489a54ae102f01d.tar.gz
use cell-vertex co-ordinates instead of cell-centre co-ordinates.
Diffstat (limited to 'makeBoundary.py')
-rwxr-xr-xmakeBoundary.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/makeBoundary.py b/makeBoundary.py
index d79c280..764952c 100755
--- a/makeBoundary.py
+++ b/makeBoundary.py
@@ -181,11 +181,11 @@ num_panels = len(panel) # number of panels across boundary
# convert marker co-ordinates to array indices:
marker_ind = [0]
for i in range(len(markers)):
- marker_ind.append(int(markers[i]/dX - 1/2))
+ marker_ind.append(int(markers[i]/dX))
if location == 'left' or location == 'right':
- marker_ind.append(nrows-1)
+ marker_ind.append(nrows)
elif location == 'top' or location == 'bottom':
- marker_ind.append(ncols-1)
+ marker_ind.append(ncols)
# print(marker_ind)