diff --git a/src/cosmology.c b/src/cosmology.c index f7ed1ae01d47d47a9525bbce602d969e22dc4d52..0a24dae580cd8f3ed5e14c8db01ab9328050e2ee 100644 --- a/src/cosmology.c +++ b/src/cosmology.c @@ -568,6 +568,8 @@ void cosmology_init_no_cosmo(struct cosmology *c) { c->a_begin = 1.; c->a_end = 1.; + c->log_a_begin = 0.; + c->log_a_end = 0.; c->log_a_table_begin = 0.; c->log_a_table_end = 0.; diff --git a/tests/testCosmology.c b/tests/testCosmology.c index a574773cf164d06eb07f56e4493b392e584caaa2..020e59cc502477e5ef93c0e362ceca6d75075aaf 100644 --- a/tests/testCosmology.c +++ b/tests/testCosmology.c @@ -72,7 +72,7 @@ int main(int argc, char *argv[]) { message("Start checking computation..."); for (int i = 0; i < N_CHECK; i++) { - double a = 0.1 + 0.9 * i / (N_CHECK - 1.); + double a = 0.01 + 0.99 * i / (N_CHECK - 1.); /* Compute a(t(a)) and check if same results */ double time = cosmology_get_time_since_big_bang(&cosmo, a);