Skip to content

Commit

Permalink
Merge pull request #1684 from willend/main
Browse files Browse the repository at this point in the history
Leave copy of generated C code in dataset
  • Loading branch information
willend authored Aug 31, 2024
2 parents ab7456e + 230f0b6 commit 7a20c6b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/Python/mcrun/mcrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,10 @@ def main():
if isdir(options.dir):
LOG.info('Placing instr file copy %s in dataset %s', options.instr, options.dir)
copyfile(options.instr, join(options.dir, basename(options.instr)))
cfile = os.path.splitext(options.instr)[0] + ".c"
if os.path.exists(cfile):
LOG.info('Placing generated c-code copy %s in dataset %s', cfile, options.dir)
copyfile(cfile, join(options.dir, basename(cfile)))

if options.autoplot is not None:
autoplotter = mccode_config.configuration['MCPLOT']
Expand Down

0 comments on commit 7a20c6b

Please sign in to comment.