diff options
author | Thomas White <taw@physics.org> | 2021-03-04 15:32:13 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-03-04 15:32:13 +0100 |
commit | 6d5365e481543db9e3070225ebd7bc11a7562215 (patch) | |
tree | c7f852b050d9fa0d895aa2b19ffc348fa6be515d | |
parent | 7ad46ee64f13892667c370c1f06f94a3f4e42d76 (diff) |
SLURM: Add one to serial offsets
They should start from 1, not 0.
-rw-r--r-- | src/gui_backend_slurm.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |