Commit 48e3b951 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

only drift leaves when forced.

parent 8d9b898e
......@@ -1921,7 +1921,7 @@ 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;
} else if (force && ti_current > ti_old_part) {
} else if (!c->split && force && ti_current > ti_old_part) {
/* Loop over all the gas particles in the cell */
const size_t nr_parts = c->count;
......
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