Commit 97471f93 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Fix a rounding error in the star age in the non-cosmological case.

parent d2743390
......@@ -378,7 +378,7 @@ void runner_do_stars_ghost(struct runner *r, struct cell *c, int timer) {
star_age_end_of_step = cosmology_get_delta_time_from_scale_factors(
cosmo, sp->birth_scale_factor, (float)cosmo->a);
} else {
star_age_end_of_step = e->time - sp->birth_time;
star_age_end_of_step = (float)e->time - sp->birth_time;
}
/* Has this star been around for a while ? */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment