From 6d5365e481543db9e3070225ebd7bc11a7562215 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 4 Mar 2021 15:32:13 +0100 Subject: SLURM: Add one to serial offsets They should start from 1, not 0. --- src/gui_backend_slurm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui_backend_slurm.c') diff --git a/src/gui_backend_slurm.c b/src/gui_backend_slurm.c index 57e8686f..eb20beca 100644 --- a/src/gui_backend_slurm.c +++ b/src/gui_backend_slurm.c @@ -622,7 +622,7 @@ static void *run_indexing(const char *job_title, if ( sc_filename == NULL ) return NULL; snprintf(array_inx, 127, "0-%i", n_blocks-1); - snprintf(serial_offs, 127, "$((${SLURM_ARRAY_TASK_ID}*%i))", + snprintf(serial_offs, 127, "$((${SLURM_ARRAY_TASK_ID}*%i+1))", opts->block_size); if ( !write_indexamajig_script(sc_filename, -- cgit v1.2.3