aboutsummaryrefslogtreecommitdiff
path: root/src/gui_ambi.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-11-07 17:06:00 +0100
committerThomas White <taw@physics.org>2023-11-07 17:22:43 +0100
commit3b5fd2d07163def85c8ef17ba250bf4f056ec34f (patch)
treee6e762d4bc0855de78c0a9edcefb249283ed37e1 /src/gui_ambi.c
parentdd26ceb0feaeedb8c1d5672ce70426c0572f30ba (diff)
SLURM: Move all sbatch parameters into script
This allows the user to re-run any job, if they want, or at least easily use the GUI's work as a template.
Diffstat (limited to 'src/gui_ambi.c')
-rw-r--r--src/gui_ambi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui_ambi.c b/src/gui_ambi.c
index d07efcf5..1201234c 100644
--- a/src/gui_ambi.c
+++ b/src/gui_ambi.c
@@ -483,7 +483,8 @@ int write_ambigator_script(const char *filename,
const char *stderr_filename,
const char *fg_filename,
const char *intermediate_rel_filename,
- const char *harvest_filename)
+ const char *harvest_filename,
+ const char *prologue)
{
FILE *fh;
int i;
@@ -492,6 +493,7 @@ int write_ambigator_script(const char *filename,
if ( fh == NULL ) return 1;
fprintf(fh, "#!/bin/sh\n");
+ fprintf(fh, "%s", prologue);
fprintf(fh, "cat \\\n");
for ( i=0; i<input->n_streams; i++ ) {