diff options
author | Paul Garlick <pgarlick@tourbillion-technology.com> | 2019-10-28 12:59:42 +0000 |
---|---|---|
committer | Paul Garlick <pgarlick@tourbillion-technology.com> | 2019-10-28 12:59:42 +0000 |
commit | d0b82712efc940de9a50ae2c131dd4de99f00744 (patch) | |
tree | 381e4cee005a48882af1ea00d6ca38a11a978b1f | |
parent | d3520995211cd405c33f32c50a28fc9874b8317c (diff) | |
download | fullSWOF-utils-d0b82712efc940de9a50ae2c131dd4de99f00744.tar.gz |
add variable for input filename.
-rwxr-xr-x | makeBoundary | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/makeBoundary b/makeBoundary index 432afb2..b16512e 100755 --- a/makeBoundary +++ b/makeBoundary @@ -118,8 +118,21 @@ parser = argparse.ArgumentParser( parser.add_argument("location", help="boundary location") args = parser.parse_args() +if args.location == 'top': + inputFilename = "boundaryTop.txt" + outputFilename = "BCTop.txt" +elif args.location == 'bottom': + inputFilename = "boundaryBottom.txt" + outputFilename = "BCBottom.txt" +elif args.location == 'left': + inputFilename = "boundaryLeft.txt" + outputFilename = "BCLeft.txt" +elif args.location == 'right': + inputFilename = "boundaryRight.txt" + outputFilename = "BCRight.txt" + # read boundary definition file: -definition_dict = read_definition('boundaryDefinition.txt') +definition_dict = read_definition(inputFilename) #for dd in definition_dict: # print(definition_dict[dd]) slope = abs(definition_dict["slope"]) # slope at top boundary |