diff --git a/examples/main.c b/examples/main.c index 7cb0f9f77238bd26b5f39ac72910148edf60970d..45df57395cef2a8a04f0feadfc06931127a0af95 100644 --- a/examples/main.c +++ b/examples/main.c @@ -604,7 +604,7 @@ int main(int argc, char *argv[]) { if (with_cosmology) cosmology_init(params, &us, &prog_const, &cosmo); else - cosmology_init_no_cosmo(params, &us, &prog_const, &cosmo); + cosmology_init_no_cosmo(&cosmo); if (with_cosmology) cosmology_print(&cosmo); /* Initialise the hydro properties */ diff --git a/src/cosmology.c b/src/cosmology.c index 5d5b45c2d00cd614e92da3de3335e7b558a727ea..053f94da9bfd3e94d212c0418adb29ac880c6695 100644 --- a/src/cosmology.c +++ b/src/cosmology.c @@ -437,10 +437,7 @@ void cosmology_init(const struct swift_params *params, * @param phys_const The physical constants in the current system of units. * @param c The #cosmology to initialise. */ -void cosmology_init_no_cosmo(const struct swift_params *params, - const struct unit_system *us, - const struct phys_const *phys_const, - struct cosmology *c) { +void cosmology_init_no_cosmo(struct cosmology *c) { c->Omega_m = 0.; c->Omega_r = 0.; diff --git a/src/cosmology.h b/src/cosmology.h index 71104f94c773e1bf46af40103e039f2caf87cb24..b0b993afb217c595e8e3932a5e8ed9a30eefe6e7 100644 --- a/src/cosmology.h +++ b/src/cosmology.h @@ -170,10 +170,7 @@ void cosmology_init(const struct swift_params *params, const struct unit_system *us, const struct phys_const *phys_const, struct cosmology *c); -void cosmology_init_no_cosmo(const struct swift_params *params, - const struct unit_system *us, - const struct phys_const *phys_const, - struct cosmology *c); +void cosmology_init_no_cosmo(struct cosmology *c); void cosmology_print(const struct cosmology *c); void cosmology_clean(struct cosmology *c);