Skip to content
Snippets Groups Projects
Commit aa863a08 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

force re-sort of cells whenever we receive particles.

parent 820d9102
No related branches found
No related tags found
1 merge request!327Rebuild criteria
......@@ -1405,6 +1405,9 @@ void runner_do_recv_part(struct runner *r, struct cell *c, int timer) {
timebin_t time_bin_min = num_time_bins;
timebin_t time_bin_max = 0;
float h_max = 0.f;
/* Clear this cell's sorted mask. */
c->sorted = 0;
/* If this cell is a leaf, collect the particle data. */
if (!c->split) {
......
......@@ -865,13 +865,6 @@ void DOPAIR1(struct runner *r, struct cell *ci, struct cell *cj) {
const struct engine *restrict e = r->e;
#ifdef WITH_MPI
if (ci->nodeID != cj->nodeID) {
DOPAIR1_NOSORT(r, ci, cj);
return;
}
#endif
#ifdef WITH_OLD_VECTORIZATION
int icount = 0;
float r2q[VEC_SIZE] __attribute__((aligned(16)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment