Skip to content
Snippets Groups Projects
Commit 9c863d85 authored by Loic Hausammann's avatar Loic Hausammann
Browse files

Remove cosmology in `cosmology_get_a_from_z`

parent ba86355c
Branches
Tags
1 merge request!560Output time from a file
...@@ -669,10 +669,9 @@ double cosmology_get_delta_time(const struct cosmology *c, ...@@ -669,10 +669,9 @@ double cosmology_get_delta_time(const struct cosmology *c,
/** /**
* @brief Compute the scale factor from the redshift. * @brief Compute the scale factor from the redshift.
* *
* @brief c The current #cosmology.
* @brief redshift The redshift to compute. * @brief redshift The redshift to compute.
*/ */
double cosmology_get_a_from_z(const struct cosmology *c, double redshift) { double cosmology_get_a_from_z(double redshift) {
return 1. / (1. + redshift); return 1. / (1. + redshift);
} }
......
...@@ -183,8 +183,7 @@ double cosmology_get_therm_kick_factor(const struct cosmology *cosmo, ...@@ -183,8 +183,7 @@ double cosmology_get_therm_kick_factor(const struct cosmology *cosmo,
double cosmology_get_delta_time(const struct cosmology *c, double cosmology_get_delta_time(const struct cosmology *c,
integertime_t ti_start, integertime_t ti_end); integertime_t ti_start, integertime_t ti_end);
double cosmology_get_a_from_z(const struct cosmology *c, double cosmology_get_a_from_z(double redshift);
double redshift);
double cosmology_get_scale_factor(const struct cosmology *cosmo, double t); double cosmology_get_scale_factor(const struct cosmology *cosmo, double t);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment