Commit 846e08b4 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

clear the do_drift and do_sub_drift flags after drifting.

parent 0c18b6df
......@@ -1910,6 +1910,10 @@ void cell_drift_part(struct cell *c, const struct engine *e, int force) {
/* Update the time of the last drift */
c->ti_old_part = ti_current;
/* Clear the drift flags. */
c->do_drift = 0;
c->do_sub_drift = 0;
} else if (force && ti_current > ti_old_part) {
/* Loop over all the gas particles in the cell */
......@@ -1956,6 +1960,10 @@ void cell_drift_part(struct cell *c, const struct engine *e, int force) {
/* Update the time of the last drift */
c->ti_old_part = ti_current;
/* Clear the drift flags. */
c->do_drift = 0;
c->do_sub_drift = 0;
}
}
......
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