Skip to content

Commit

Permalink
remove symbolic link stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
teopb committed Jul 20, 2023
1 parent c948069 commit aa0cdd5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions MPAS_true_failure_testing/pre_run_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@
for order in neg_test_orders:
# create initial conditions copy directories using symlinks
init_copy_folder = f"{init_copy_dir}/{var_name}_perturb_neg{order}"
command = f"cp -as {init_dir}/ {init_copy_folder}"
command = f"cp -a {init_dir}/ {init_copy_folder}"
os.system(command)

# remove old linked namelist
os.remove(f"{init_copy_folder}/{namelist_name}")
# # remove old linked namelist
# os.remove(f"{init_copy_folder}/{namelist_name}")

# create empty directories for outputs
output_folder = test_output_dir + f"/{var_name}_perturb_neg{order}"
Expand All @@ -72,11 +72,11 @@
for order in pos_test_orders:
# create initial conditions copy directories using symlinks
init_copy_folder = f"{init_copy_dir}/{var_name}_perturb_{order}"
command = f"cp -as {init_dir}/ {init_copy_folder}"
command = f"cp -a {init_dir}/ {init_copy_folder}"
os.system(command)

# remove old linked namelist
os.remove(f"{init_copy_folder}/{namelist_name}")
# # remove old linked namelist
# os.remove(f"{init_copy_folder}/{namelist_name}")

# create empty directories for outputs
output_folder = test_output_dir + f"/{var_name}_perturb_{order}"
Expand Down

0 comments on commit aa0cdd5

Please sign in to comment.