Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Finished redirect method to copy files to subfolders and append interval numbers to them
  • Loading branch information
daminton committed Feb 23, 2022
1 parent 769ed17 commit bc52cba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/ctem/ctem/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ def redirect_outputs(self, filekeys, foldername):

for k in filekeys:
forig = self.output_filenames[k]
fdist = os.path.join(self.user['workingdir'], foldername, f"{k}_{self.user['ncount']:06d}.dat")
fdest = os.path.join(self.user['workingdir'], foldername, f"{k}_{self.user['ncount']:06d}.dat")
shutil.copy2(forig, fdest)

if __name__ == '__main__':
sim = Simulation()
Expand Down

0 comments on commit bc52cba

Please sign in to comment.