diff --git a/examples/main.c b/examples/main.c index 758ebcbdfd2e166990fa7b48dc181d4a301283c9..8b0ae1416997c6e7fdeeb0f0c3adace84380cf2b 100644 --- a/examples/main.c +++ b/examples/main.c @@ -1125,7 +1125,7 @@ int main(int argc, char *argv[]) { #endif /* Dump initial state snapshot, if not working with an output list */ if (!e.output_list_snapshots) engine_dump_snapshot(&e); - + /* Dump initial state statistics, if not working with an output list */ if (!e.output_list_stats) engine_print_stats(&e); @@ -1300,20 +1300,20 @@ int main(int argc, char *argv[]) { #endif /* Write final snapshot? */ - if ((e.output_list_snapshots && e.output_list_snapshots->final_step_dump) - || !e.output_list_snapshots) { + if ((e.output_list_snapshots && e.output_list_snapshots->final_step_dump) || + !e.output_list_snapshots) { #ifdef HAVE_VELOCIRAPTOR - if (with_structure_finding && e.snapshot_invoke_stf) - velociraptor_invoke(&e, /*linked_with_snap=*/1); + if (with_structure_finding && e.snapshot_invoke_stf) + velociraptor_invoke(&e, /*linked_with_snap=*/1); #endif - engine_dump_snapshot(&e); + engine_dump_snapshot(&e); #ifdef HAVE_VELOCIRAPTOR - if (with_structure_finding && e.snapshot_invoke_stf) - free(e.s->gpart_group_data); + if (with_structure_finding && e.snapshot_invoke_stf) + free(e.s->gpart_group_data); #endif } - /* Write final stf? */ + /* Write final stf? */ #ifdef HAVE_VELOCIRAPTOR if (with_structure_finding && e.output_list_stf) { if (e.output_list_stf->final_step_dump) diff --git a/src/engine.c b/src/engine.c index 1d4ad74a7115cead171152f9da890c47785b7705..bf81b9d6d8bacea80ef3cbe9800a0ff34e947519 100644 --- a/src/engine.c +++ b/src/engine.c @@ -5446,11 +5446,11 @@ void engine_config(int restart, int fof, struct engine *e, e->output_list_snapshots) && (output_list_check_duplicates(e->output_list_snapshots, e->output_list_stf))) - error("Cannot have duplicate time entries between " - "StructureFinding:output_list and " - "Snapshots:output_list when Snapshots:invoke_stf " - "is selected."); - + error( + "Cannot have duplicate time entries between " + "StructureFinding:output_list and " + "Snapshots:output_list when Snapshots:invoke_stf " + "is selected."); } if (e->policy & engine_policy_fof) { diff --git a/src/outputlist.c b/src/outputlist.c index 7e742a07c388007de4895318a1369a2ae4eadacd..5051536d4a640edc9415e734bf8a3282cc56d156 100644 --- a/src/outputlist.c +++ b/src/outputlist.c @@ -185,13 +185,14 @@ void output_list_read_next_time(struct output_list *t, const struct engine *e, /* Do we need to do a dump at the end of the last timestep? */ if (time == time_end) { - t->final_step_dump = 1; - if (e->verbose) - if (is_cosmo) { - message("Next output time for %s set to a=%e.", name, time_end); - } else { - message("Next output time for %s set to t=%e.", name, time_end); - } + t->final_step_dump = 1; + if (e->verbose) { + if (is_cosmo) { + message("Next output time for %s set to a=%e.", name, time_end); + } else { + message("Next output time for %s set to t=%e.", name, time_end); + } + } } /* Deal with last statistics */ @@ -324,8 +325,8 @@ void output_list_struct_restore(struct output_list *list, FILE *stream) { int output_list_check_duplicates(const struct output_list *list_a, const struct output_list *list_b) { - for (size_t ind_a=0; ind_a < list_a->size; ind_a++) { - for (size_t ind_b=0; ind_b < list_a->size; ind_b++) { + for (size_t ind_a = 0; ind_a < list_a->size; ind_a++) { + for (size_t ind_b = 0; ind_b < list_a->size; ind_b++) { if (list_a->times[ind_a] == list_b->times[ind_b]) return 1; } }