Commit dd882b93 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Also pass the cosmological model to the chemistry_end_density() function

parent da3d0023
......@@ -103,9 +103,11 @@ __attribute__((always_inline)) INLINE static void chemistry_init_part(
*
* @param p The particle to act upon.
* @param cd #chemistry_data containing chemistry informations.
* @param cosmo The current cosmological model.
*/
__attribute__((always_inline)) INLINE static void chemistry_end_density(
struct part* restrict p, const struct chemistry_data* cd) {
struct part* restrict p, const struct chemistry_data* cd,
const struct cosmology* cosmo) {
/* Some smoothing length multiples. */
const float h = p->h;
......
......@@ -756,7 +756,7 @@ void runner_do_ghost(struct runner *r, struct cell *c, int timer) {
/* Re-initialise everything */
hydro_init_part(p, hs);
chemistry_init_part(p, e->chemistry);
chemistry_init_part(p, chemistry);
/* Off we go ! */
continue;
......
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