diff --git a/src/distributed_io.c b/src/distributed_io.c index 000033b91ab962b421608fa9ecb4b6bbf0f82764..a2e6e5f0f3929703e2fe83146b2fa87d2c224d22 100644 --- a/src/distributed_io.c +++ b/src/distributed_io.c @@ -363,8 +363,7 @@ void write_output_distributed(struct engine* e, if (output_list) { /* Users could have specified a different Select Output scheme for each * snapshot. */ - output_list_get_current_select_output(output_list, - ¤t_selection_name[0]); + output_list_get_current_select_output(output_list, current_selection_name); } /* Print the relevant information and print status */ diff --git a/src/parallel_io.c b/src/parallel_io.c index 37999d01eb6a24bc3e1f5c3a5010c19dbde93110..994fe100949d1bdf6badaa367307013a42d0708e 100644 --- a/src/parallel_io.c +++ b/src/parallel_io.c @@ -1110,8 +1110,7 @@ void prepare_file(struct engine* e, const char* fileName, if (output_list) { /* Users could have specified a different Select Output scheme for each * snapshot. */ - output_list_get_current_select_output(output_list, - ¤t_selection_name[0]); + output_list_get_current_select_output(output_list, current_selection_name); } /* Print the relevant information and print status */ @@ -1788,7 +1787,7 @@ void write_output_parallel(struct engine* e, /* Users could have specified a different Select Output scheme for each * snapshot. */ output_list_get_current_select_output(output_list, - ¤t_selection_name[0]); + current_selection_name); } for (int i = 0; i < num_fields; ++i) { diff --git a/src/serial_io.c b/src/serial_io.c index 43de9c19a8b1832550d036b044d30030ef67660a..00d2f3c84dc923c7c359b6ab8549119c5836e201 100644 --- a/src/serial_io.c +++ b/src/serial_io.c @@ -930,8 +930,7 @@ void write_output_serial(struct engine* e, if (output_list) { /* Users could have specified a different Select Output scheme for each * snapshot. */ - output_list_get_current_select_output(output_list, - ¤t_selection_name[0]); + output_list_get_current_select_output(output_list, current_selection_name); } /* Compute offset in the file and total number of particles */ diff --git a/src/single_io.c b/src/single_io.c index 0f22ddeb2aca5b3e063133191d2499fb5e5505bd..5560b90823c174d6bec63911cf12d5bc16e1bc83 100644 --- a/src/single_io.c +++ b/src/single_io.c @@ -822,8 +822,7 @@ void write_output_single(struct engine* e, if (output_list) { /* Users could have specified a different Select Output scheme for each * snapshot. */ - output_list_get_current_select_output(output_list, - ¤t_selection_name[0]); + output_list_get_current_select_output(output_list, current_selection_name); } /* Print the relevant information and print status */