Skip to content

Instantly share code, notes, and snippets.

@mt5555
Last active June 30, 2022 16:01
Show Gist options
  • Save mt5555/fc89e32467572b5099b90f6dc023e678 to your computer and use it in GitHub Desktop.
Save mt5555/fc89e32467572b5099b90f6dc023e678 to your computer and use it in GitHub Desktop.
TSC ninst mods
index 330677383..4a22ab908 100644
--- a/CIME/SystemTests/tsc.py
+++ b/CIME/SystemTests/tsc.py
@@ -105,8 +105,12 @@ class TSC(SystemTestsCommon):
nstep_output = OUT_FREQ // dtime
for iinst in range(1, NINST + 1):
+
+ cmd = '\cp -f ' + f'user_nl_{self.atmmod} ' + f'user_nl_{self.atmmod}_'+str(iinst).zfill(4) + '\n'
+ os.system(cmd)
+
with open(
- f"user_nl_{self.atmmod}_" + str(iinst).zfill(4), "w"
+ f"user_nl_{self.atmmod}_" + str(iinst).zfill(4), "a"
) as atmnlfile, open(
f"user_nl_{self.lndmod}_" + str(iinst).zfill(4), "w"
) as lndnlfile:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment