aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Garlick <pgarlick@tourbillion-technology.com>2019-11-08 15:11:57 +0000
committerPaul Garlick <pgarlick@tourbillion-technology.com>2019-11-08 15:11:57 +0000
commit00a23485a0dcd1d847f1dc1f0fd833561d54d3ee (patch)
tree140de6cbe298a45b1433ab64f72ed81f01846065
parentda070f46c09beb91ff85ada0e9aaad558a26dd58 (diff)
downloadfullSWOF-utils-00a23485a0dcd1d847f1dc1f0fd833561d54d3ee.tar.gz
use sys module to supply exit function.
-rwxr-xr-xmakeBoundary3
1 files changed, 2 insertions, 1 deletions
diff --git a/makeBoundary b/makeBoundary
index ca0478f..8b6b7e5 100755
--- a/makeBoundary
+++ b/makeBoundary
@@ -6,6 +6,7 @@ import bisect
import ast
import math
import argparse
+import sys
#TODO: use YAML/ruamel.yaml for configuration file.
def read_definition(filename):
@@ -294,7 +295,7 @@ if total_flow[-1] > target_flow:
ind_p = bisect.bisect(total_flow, target_flow)
else:
print('Error: imposed discharge is higher than capacity')
- quit()
+ sys.exit()
print('index of part-filled panel:', ind_p)