diff options
author | Paul Garlick <pgarlick@tourbillion-technology.com> | 2019-10-28 13:05:42 +0000 |
---|---|---|
committer | Paul Garlick <pgarlick@tourbillion-technology.com> | 2019-10-28 13:10:44 +0000 |
commit | cb3cddba88edeba0480fb0a32b59b76162e00a06 (patch) | |
tree | d287c2090349c3b2bdfed9a3991cd102608394c8 | |
parent | d0b82712efc940de9a50ae2c131dd4de99f00744 (diff) | |
download | fullSWOF-utils-cb3cddba88edeba0480fb0a32b59b76162e00a06.tar.gz |
add comment and remove duplicated filename assignments.
-rwxr-xr-x | makeBoundary | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/makeBoundary b/makeBoundary index b16512e..6695404 100755 --- a/makeBoundary +++ b/makeBoundary @@ -158,6 +158,7 @@ numH = definition_dict["numH"] # number of height intervals # m, c = np.polyfit(ych, zch, 1) # print('gradient =', m, 'intercept =', c) +# read topography: with open(height_data, "r") as topo: xtp, ytp, ztp = np.loadtxt(topo, delimiter=' ', unpack=True) @@ -177,22 +178,18 @@ if args.location == 'top': xin = xtp[nrows-1:len(xtp):nrows] yin = ytp[nrows-1:len(xtp):nrows] zin = ztp[nrows-1:len(xtp):nrows] - outputFilename = "BCTop.txt" elif args.location == 'bottom': xin = xtp[0:len(xtp):nrows] yin = ytp[0:len(xtp):nrows] zin = ztp[0:len(xtp):nrows] - outputFilename = "BCBottom.txt" elif args.location == 'left': xin = xtp[:nrows] yin = ytp[:nrows] zin = ztp[:nrows] - outputFilename = "BCLeft.txt" elif args.location == 'right': xin = xtp[nrows*(ncols-1):] yin = ytp[nrows*(ncols-1):] zin = ztp[nrows*(ncols-1):] - outputFilename = "BCRight.txt" # print(xin) |