diff --git a/src/runner.c b/src/runner.c index 803ef5e3b06f453de2161cfb2a9f82c3daf85926..4ee11c91aac872a9c1122a9c8e53f2e49485e7d1 100644 --- a/src/runner.c +++ b/src/runner.c @@ -1147,6 +1147,9 @@ void runner_do_timestep(struct runner *r, struct cell *c, int timer) { c->ti_end_min = ti_end_min; c->ti_end_max = ti_end_max; + /* Clear the sort field */ + c->sorted = 0; + if (timer) TIMER_TOC(timer_timestep); } @@ -1273,6 +1276,9 @@ void runner_do_recv_cell(struct runner *r, struct cell *c, int timer) { c->ti_old = ti_current; c->h_max = h_max; + /* Clear the sort field */ + c->sorted = 0; + if (timer) TIMER_TOC(timer_dorecv_cell); #else