diff --git a/examples/EAGLE_ICs/EAGLE_12/eagle_12.yml b/examples/EAGLE_ICs/EAGLE_12/eagle_12.yml index 69f7ce79faf38b997b3b5b0ef7fd38977defceec..8aedb65e808bef57dbb3c5b5c4c884a09d0d602b 100644 --- a/examples/EAGLE_ICs/EAGLE_12/eagle_12.yml +++ b/examples/EAGLE_ICs/EAGLE_12/eagle_12.yml @@ -27,8 +27,6 @@ TimeIntegration: # Parameters governing the snapshots Snapshots: basename: eagle # Common part of the name of output files - scale_factor_first: 0.05 - delta_time: 1.02 output_list_on: 1 output_list: ./output_list.txt diff --git a/examples/EAGLE_ICs/EAGLE_25/eagle_25.yml b/examples/EAGLE_ICs/EAGLE_25/eagle_25.yml index a9af254b7022970a3edcf12ee7a1f9a9a4f12d61..49621b089dbef9e6e5ee73fe14668313887433d6 100644 --- a/examples/EAGLE_ICs/EAGLE_25/eagle_25.yml +++ b/examples/EAGLE_ICs/EAGLE_25/eagle_25.yml @@ -27,8 +27,6 @@ TimeIntegration: # Parameters governing the snapshots Snapshots: basename: eagle # Common part of the name of output files - scale_factor_first: 0.05 - delta_time: 1.02 output_list_on: 1 output_list: ./output_list.txt diff --git a/examples/EAGLE_ICs/EAGLE_50/eagle_50.yml b/examples/EAGLE_ICs/EAGLE_50/eagle_50.yml index 1f3b4ac7f41c7b299fdac3e527fb76ca8b791b9d..3b80476800cd43b8de2318d703a02af7e799d35e 100644 --- a/examples/EAGLE_ICs/EAGLE_50/eagle_50.yml +++ b/examples/EAGLE_ICs/EAGLE_50/eagle_50.yml @@ -27,8 +27,6 @@ TimeIntegration: # Parameters governing the snapshots Snapshots: basename: eagle # Common part of the name of output files - scale_factor_first: 0.05 - delta_time: 1.02 output_list_on: 1 output_list: ./output_list.txt diff --git a/src/engine.c b/src/engine.c index 5e2ed48cf550659c145ec340e0a2b40ae1bbf7e8..1799d5b09332e1ef9ef13f3b2912c27c03425f47 100644 --- a/src/engine.c +++ b/src/engine.c @@ -4948,7 +4948,7 @@ void engine_init(struct engine *e, struct space *s, struct swift_params *params, e->time_first_snapshot = parser_get_opt_param_double(params, "Snapshots:time_first", 0.); e->delta_time_snapshot = - parser_get_param_double(params, "Snapshots:delta_time"); + parser_get_opt_param_double(params, "Snapshots:delta_time", -1.); e->ti_next_snapshot = 0; parser_get_param_string(params, "Snapshots:basename", e->snapshot_base_name); e->snapshot_compression =