Skip to content

Commit

Permalink
temp print message for ect args from post_run_script
Browse files Browse the repository at this point in the history
  • Loading branch information
teopb committed Jun 6, 2024
1 parent 477ef48 commit 3810dea
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions new_model_setup/MPAS/MPAS_scenario_testing/post_run_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

from pyCECT import main as ECT


def main(argv):

# # read in testing parameter files
Expand Down Expand Up @@ -96,7 +95,7 @@ def main(argv):
else:

# Create symlinks to history files
command = f"find {test_output_dir}/{test_name}/{test_name}* -name \"history_full*\" -exec cp -s '{{}}' {test_output_dir}/{test_name}/history_files/ \;"
command = f"find {test_output_dir}/{test_name}/{test_name}* -name \"history_full*\" -exec cp -sf '{{}}' {test_output_dir}/{test_name}/history_files/ \;"

os.system(command)
# print(command)
Expand Down Expand Up @@ -153,7 +152,7 @@ def main(argv):
else:

# Create symlinks to history files
command = f"find {test_output_dir}/{test_folder}/{test_folder}* -name \"history_full*\" -exec cp -s '{{}}' {test_output_dir}/{test_folder}/history_files/ \;"
command = f"find {test_output_dir}/{test_folder}/{test_folder}* -name \"history_full*\" -exec cp -sf '{{}}' {test_output_dir}/{test_folder}/history_files/ \;"

os.system(command)
# print(command)
Expand Down Expand Up @@ -196,7 +195,7 @@ def main(argv):

else:
# Create symlinks to history files
command = f"find {test_output_dir}/{test_folder}/{test_folder}* -name \"history_full*\" -exec cp -s '{{}}' {test_output_dir}/{test_folder}/history_files/ \;"
command = f"find {test_output_dir}/{test_folder}/{test_folder}* -name \"history_full*\" -exec cp -sf '{{}}' {test_output_dir}/{test_folder}/history_files/ \;"

os.system(command)
# print(command)
Expand All @@ -221,6 +220,8 @@ def run_ECT(sumfile, indir, tslice, nPC, eet_count, saveEET_file=None, saveResul
if use_saveResults_file is not None:
args_for_ECT.append(f'--useSavedResults={use_saveResults_file}')

print(args_for_ECT)

ECT(args_for_ECT)

if __name__ == '__main__':
Expand Down

0 comments on commit 3810dea

Please sign in to comment.