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

Better function signatures for the feedback iact functions.

parent 1dc137a4
......@@ -37,11 +37,13 @@
* @param ti_current Current integer time value
*/
__attribute__((always_inline)) INLINE static void
runner_iact_nonsym_feedback_density(
const float r2, const float *dx, const float hi, const float hj,
struct spart *restrict si, const struct part *restrict pj,
const struct xpart *restrict xpj, const struct cosmology *restrict cosmo,
const struct engine *e, const integertime_t ti_current) {
runner_iact_nonsym_feedback_density(const float r2, const float *dx,
const float hi, const float hj,
struct spart *si, const struct part *pj,
const struct xpart *xpj,
const struct cosmology *cosmo,
const struct engine *e,
const integertime_t ti_current) {
/* Get the gas mass. */
const float mj = hydro_get_mass(pj);
......@@ -84,11 +86,13 @@ runner_iact_nonsym_feedback_density(
* generator
*/
__attribute__((always_inline)) INLINE static void
runner_iact_nonsym_feedback_apply(
const float r2, const float *dx, const float hi, const float hj,
const struct spart *restrict si, struct part *restrict pj,
struct xpart *restrict xpj, const struct cosmology *restrict cosmo,
const struct engine *e, const integertime_t ti_current) {
runner_iact_nonsym_feedback_apply(const float r2, const float *dx,
const float hi, const float hj,
const struct spart *si, struct part *pj,
struct xpart *xpj,
const struct cosmology *cosmo,
const struct engine *e,
const integertime_t ti_current) {
/* Get r and 1/r. */
const float r_inv = 1.0f / sqrtf(r2);
......
......@@ -37,10 +37,9 @@
__attribute__((always_inline)) INLINE static void
runner_iact_nonsym_feedback_density(const float r2, const float *dx,
const float hi, const float hj,
struct spart *restrict si,
const struct part *restrict pj,
const struct xpart *restrict xp,
const struct cosmology *restrict cosmo,
struct spart *si, const struct part *pj,
const struct xpart *xp,
const struct cosmology *cosmo,
const integertime_t ti_current) {}
/**
......@@ -63,10 +62,9 @@ runner_iact_nonsym_feedback_density(const float r2, const float *dx,
__attribute__((always_inline)) INLINE static void
runner_iact_nonsym_feedback_apply(const float r2, const float *dx,
const float hi, const float hj,
const struct spart *restrict si,
struct part *restrict pj,
struct xpart *restrict xp,
const struct cosmology *restrict cosmo,
const struct spart *si, struct part *pj,
struct xpart *xp,
const struct cosmology *cosmo,
const integertime_t ti_current) {}
#endif /* SWIFT_NONE_FEEDBACK_IACT_H */
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