diff --git a/src/engine.c b/src/engine.c index d032349a0f287e9dfb87d9b73b3db2e0f2d8c93d..bf936299470d5f0a6403823080c4d7b4f488e1a3 100644 --- a/src/engine.c +++ b/src/engine.c @@ -90,6 +90,7 @@ #include "units.h" #include "velociraptor_interface.h" #include "version.h" +#include "starformation.h" /* Particle cache size. */ #define CACHE_SIZE 512 diff --git a/src/runner.c b/src/runner.c index 686dbc0f16ee7294bf83cabb6e7f6476532d106b..399c1bd7ce56180b072ee262097c95837a951486 100644 --- a/src/runner.c +++ b/src/runner.c @@ -465,7 +465,7 @@ void runner_do_star_formation(struct runner *r, struct cell *c, int timer) { struct engine *e = r->e; const struct cosmology *cosmo = e->cosmology; - const struct star_formation starform = e->star_formation; + const struct star_formation *starform = e->star_formation; const struct phys_const *constants = e->physical_constants; const int count = c->hydro.count; struct part *restrict parts = c->hydro.parts; diff --git a/src/starformation/none/starformation.h b/src/starformation/none/starformation.h index e1a949fdc10537cb359591be20d333024250dd4a..40c46102dda772a90a8e148ae9d696a1b0b534c2 100644 --- a/src/starformation/none/starformation.h +++ b/src/starformation/none/starformation.h @@ -47,8 +47,8 @@ struct star_formation {}; * * */ int starformation_potential_to_become_star( - const struct star_formation* starform, const struct parts* p, - const struct xparts* xp, const struct phys_const* const phys_const, + const struct star_formation* starform, struct parts* restrict p, + const struct xparts* restrict xp, const struct phys_const* const phys_const, const struct cosmology* cosmo){ return 0; @@ -64,8 +64,8 @@ int starformation_potential_to_become_star( * * */ void starformation_convert_to_gas( - const struct star_formation* starform, const struct parts* p, - const struct xparts* xp, const struct cosmology* cosmo) {} + const struct star_formation* starform, const struct parts* restrict p, + const struct xparts* restrict xp, const struct cosmology* cosmo) {} /* * @brief initialization of the star formation law