diff options
author | Thomas White <taw@physics.org> | 2021-03-03 17:12:07 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-03-03 18:50:28 +0100 |
commit | 65a1afdce2da5cd92f6907f6e517b9ec4280cdd5 (patch) | |
tree | 39ec35043db5cebd86f06ccca1110e524d2a68dc /src/gui_index.c | |
parent | defd159f19585aad359bf5dfbd9f1ff9dc2831fc (diff) |
GUI: Submit indexing jobs as job arrays, not individual jobs
Diffstat (limited to 'src/gui_index.c')
-rw-r--r-- | src/gui_index.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/gui_index.c b/src/gui_index.c index 450030d2..589e0281 100644 --- a/src/gui_index.c +++ b/src/gui_index.c @@ -667,12 +667,12 @@ static void add_arg_string(char **args, int pos, const char *label, } -char **indexamajig_command_line(const char *geom_filename, - const char *n_thread_str, - const char *files_list, - const char *stream_filename, - struct peak_params *peak_search_params, - struct index_params *indexing_params) +static char **indexamajig_command_line(const char *geom_filename, + const char *n_thread_str, + const char *files_list, + const char *stream_filename, + struct peak_params *peak_search_params, + struct index_params *indexing_params) { char **args; char tols[2048]; @@ -828,6 +828,7 @@ int write_indexamajig_script(const char *script_filename, const char *n_thread_str, const char *files_list, const char *stream_filename, + int redirect_output, struct peak_params *peak_search_params, struct index_params *indexing_params) { @@ -855,7 +856,9 @@ int write_indexamajig_script(const char *script_filename, i++; }; free(cmdline); - fprintf(fh, ">stdout.log 2>stderr.log\n"); + if ( redirect_output ) { + fprintf(fh, ">stdout.log 2>stderr.log\n"); + } fclose(fh); return 0; |