diff options
| -rwxr-xr-x | makeBoundary | 3 | 
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) | 
