Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!343Subset sorting
...@@ -1910,6 +1910,10 @@ void cell_drift_part(struct cell *c, const struct engine *e, int force) { ...@@ -1910,6 +1910,10 @@ void cell_drift_part(struct cell *c, const struct engine *e, int force) {
/* Update the time of the last drift */ /* Update the time of the last drift */
c->ti_old_part = ti_current; 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) { } else if (force && ti_current > ti_old_part) {
/* Loop over all the gas particles in the cell */ /* 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) { ...@@ -1956,6 +1960,10 @@ void cell_drift_part(struct cell *c, const struct engine *e, int force) {
/* Update the time of the last drift */ /* Update the time of the last drift */
c->ti_old_part = ti_current; c->ti_old_part = ti_current;
/* Clear the drift flags. */
c->do_drift = 0;
c->do_sub_drift = 0;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment