diff --git a/src/engine.c b/src/engine.c index 64b40c17cce0f2ea6853a98bb44d119a83ee847e..7c1648b25f5cbeb2a5327c51ab2aa8cb493b9302 100644 --- a/src/engine.c +++ b/src/engine.c @@ -5833,7 +5833,7 @@ void engine_init(struct engine *e, struct space *s, struct swift_params *params, e->ti_current = 0; } - engine_read_outputlist_files(e, params); + engine_init_outputlists(e, params); } /** @@ -6735,12 +6735,12 @@ void engine_read_next_statistics_time(struct engine *e) { } /** - * @brief Read all the outputlist files + * @brief Initialize all the outputlist required by the engine * * @param e The #engine. * @param params The #swift_params. */ -void engine_read_outputlist_files(struct engine *e, struct swift_params *params) { +void engine_init_outputlists(struct engine *e, struct swift_params *params) { char filename[PARSER_MAX_LINE_SIZE]; struct outputlist *list; diff --git a/src/engine.h b/src/engine.h index ebc7499b364c9c777fad61e9f8d3ddd9f085e322..3a917882bbc19eba35e07c58903c2c95016b6f63 100644 --- a/src/engine.h +++ b/src/engine.h @@ -377,7 +377,7 @@ void engine_drift_top_multipoles(struct engine *e); void engine_reconstruct_multipoles(struct engine *e); void engine_print_stats(struct engine *e); void engine_dump_snapshot(struct engine *e); -void engine_read_outputlist_files(struct engine *e, struct swift_params *params); +void engine_init_outputlists(struct engine *e, struct swift_params *params); void engine_init(struct engine *e, struct space *s, struct swift_params *params, long long Ngas, long long Ngparts, long long Nstars, int policy, int verbose, struct repartition *reparttype, diff --git a/src/outputlist.c b/src/outputlist.c index b3ab66712a2ba009ad5813803ea3e7d44eb38a36..95a031ab8a4b9977eaa0f855456311a36f2095e4 100644 --- a/src/outputlist.c +++ b/src/outputlist.c @@ -104,7 +104,7 @@ void outputlist_read_file(struct outputlist *outputlist, const char* filename, /* Transform input into correct time (e.g. ages or scale factor) */ if (type == OUTPUTLIST_REDSHIFT) - *time = cosmology_get_a_from_z(cosmo, *time); + *time = cosmology_get_a_from_z(*time); if (cosmo && type == OUTPUTLIST_AGE) *time = cosmology_get_scale_factor(cosmo, *time);