Commit 51a33aba authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Make sure io_check_output_fields() is called on all ranks since it now also...

Make sure io_check_output_fields() is called on all ranks since it now also initialises some fields in the output_options object
parent c669f13b
......@@ -841,9 +841,8 @@ int main(int argc, char *argv[]) {
} else {
/* Verify that the fields to dump actually exist */
if (myrank == 0)
io_check_output_fields(output_options, with_cosmology, with_fof,
with_structure_finding);
io_check_output_fields(output_options, with_cosmology, with_fof,
with_structure_finding);
/* Not restarting so look for the ICs. */
/* Initialize unit system and constants */
......
......@@ -51,6 +51,9 @@ 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) {
/* Start by zero-ing everything */
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