Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!303MPI send/recv fixes for inactive cells
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment