Commit 078d450f authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Force a sort of the particles at every time-step for active cells and at reception of data.

parent 7386d678
...@@ -1147,6 +1147,9 @@ void runner_do_timestep(struct runner *r, struct cell *c, int timer) { ...@@ -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_min = ti_end_min;
c->ti_end_max = ti_end_max; c->ti_end_max = ti_end_max;
/* Clear the sort field */
c->sorted = 0;
if (timer) TIMER_TOC(timer_timestep); if (timer) TIMER_TOC(timer_timestep);
} }
...@@ -1273,6 +1276,9 @@ void runner_do_recv_cell(struct runner *r, struct cell *c, int timer) { ...@@ -1273,6 +1276,9 @@ void runner_do_recv_cell(struct runner *r, struct cell *c, int timer) {
c->ti_old = ti_current; c->ti_old = ti_current;
c->h_max = h_max; c->h_max = h_max;
/* Clear the sort field */
c->sorted = 0;
if (timer) TIMER_TOC(timer_dorecv_cell); if (timer) TIMER_TOC(timer_dorecv_cell);
#else #else
......
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