Commit 9e0632d3 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Fix issue related to incorrect initialisation of the output_options in parallel runs

parent 23859640
......@@ -3881,6 +3881,7 @@ void engine_init(struct engine *e, struct space *s, struct swift_params *params,
e->max_active_bin = num_time_bins;
e->min_active_bin = 1;
e->internal_units = internal_units;
e->output_list_snapshots = NULL;
e->a_first_snapshot =
parser_get_opt_param_double(params, "Snapshots:scale_factor_first", 0.1);
e->time_first_snapshot =
......
......@@ -51,8 +51,6 @@ const char* compression_level_names[compression_level_count] = {
void output_options_init(struct swift_params* parameter_file, int mpi_rank,
struct output_options* output_options) {
bzero(output_options, sizeof(struct output_options));
/* Load select_output */
struct swift_params* select_output =
(struct swift_params*)malloc(sizeof(struct swift_params));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment