From 39a0bb0de47745943703ce7ca89a6dba060f4666 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Fri, 4 Jan 2019 13:33:54 +0100
Subject: [PATCH] Initialise the Hubble time and lookback time to 0 when
 running without cosmology.

---
 src/cosmology.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cosmology.c b/src/cosmology.c
index d6d3898424..be23343d0d 100644
--- a/src/cosmology.c
+++ b/src/cosmology.c
@@ -577,7 +577,7 @@ void cosmology_init_no_cosmo(struct cosmology *c) {
   c->time = 0.;
   c->universe_age_at_present_day = 0.;
   c->Hubble_time = 0.;
-  c->Lookback_time = 0.;
+  c->lookback_time = 0.;
 
   /* Initialise the interpolation tables */
   c->drift_fac_interp_table = NULL;
-- 
GitLab