run_cleanup(results,
start_dir,
scr_dir,
jobname,
save_output_file,
scratch_cleanup)
|
|
Cleanup from a subdirectory run.
This will completely nuke the scratch dir and cd to the start_dir.
- Parameters:
results (MopacResults) - A MopacResults object, in which output filename and zipped_output
filenames are stored if available.
start_dir (str) - The launch directory for the job.
scr_dir (str) - The scratch directory for the job as an absolute path.
jobname (str) - The base job name.
save_output_file (bool) - If True, copy the output file from the scratch dir back to the
starting directory.
scratch_cleanup (enum) - If REMOVE, simply remove the scratch dir at the end of the job;
if ZIP, create a zip file of the scratch directory contents; if
SAVE, do no cleanup.
|