Corrected coloured text printing and message when using --geometry-fixed option.

这个提交包含在:
Craig Warren
2016-10-20 12:01:52 +01:00
父节点 eef18a4478
当前提交 121549eca6

查看文件

@@ -443,8 +443,8 @@ def run_model(args, modelrun, numbermodelruns, inputfile, usernamespace):
# If geometry information to be reused between model runs
else:
inputfilestr = '\nInput file not re-processed'
print(Fore.GREEN + '{} {}\n'.format(inputfilestr, '-' * (get_terminal_width() - 1 - len(inputfilestr))))
inputfilestr = '\n--- Model {} of {}, input file (not re-processed, i.e. geometry fixed): {}'.format(modelrun, numbermodelruns, inputfile)
print(Fore.GREEN + '{} {}\n'.format(inputfilestr, '-' * (get_terminal_width() - 1 - len(inputfilestr))) + Style.RESET_ALL)
# Clear arrays for field components
G.initialise_field_arrays()