From 65f1780854796dc221bbed2ed55e2309af115fd0 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Fri, 4 Jan 2019 12:19:55 +0100 Subject: [PATCH] Initialise the Hubble time and lookback time to 0 when running without cosmology. --- src/cosmology.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cosmology.c b/src/cosmology.c index 4718ed5b31..d6d3898424 100644 --- a/src/cosmology.c +++ b/src/cosmology.c @@ -576,6 +576,8 @@ void cosmology_init_no_cosmo(struct cosmology *c) { c->a_dot = 0.; c->time = 0.; c->universe_age_at_present_day = 0.; + c->Hubble_time = 0.; + c->Lookback_time = 0.; /* Initialise the interpolation tables */ c->drift_fac_interp_table = NULL; -- GitLab