From 48e3b951c37d9a54a27796fffc7db8cfb8667057 Mon Sep 17 00:00:00 2001 From: Pedro Gonnet <gonnet@google.com> Date: Thu, 6 Jul 2017 22:37:48 +0200 Subject: [PATCH] only drift leaves when forced. --- src/cell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cell.c b/src/cell.c index 33dca559ac..b42cfccd60 100644 --- a/src/cell.c +++ b/src/cell.c @@ -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; -- GitLab