Commit 8a87964f authored by Loic Hausammann's avatar Loic Hausammann

Change where the feedback is applied

parent deb46390
......@@ -5192,6 +5192,11 @@ void cell_drift_part(struct cell *c, const struct engine *e, int force) {
/* Ignore inhibited particles */
if (part_is_inhibited(p, e)) continue;
/* Apply the effects of feedback on this particle
* (Note: Only used in schemes that have a delayed feedback mechanism
* otherwise just an empty function) */
feedback_update_part(p, xp, e);
/* Drift... */
drift_part(p, xp, dt_drift, dt_kick_hydro, dt_kick_grav, dt_therm,
ti_old_part, ti_current, e->cosmology, e->hydro_properties,
......
......@@ -211,11 +211,6 @@ void runner_do_cooling(struct runner *r, struct cell *c, int timer) {
cooling_cool_part(constants, us, cosmo, hydro_props,
entropy_floor_props, cooling_func, p, xp, dt_cool,
dt_therm, time);
/* Apply the effects of feedback on this particle
* (Note: Only used in schemes that have a delayed feedback mechanism
* otherwise just an empty function) */
feedback_update_part(p, xp, e);
}
}
}
......
Markdown is supported
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