Commit 4a90c6c6 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Make sure we do not update a local cell in the receive tasks.

parent 2abc9ff9
......@@ -1518,6 +1518,11 @@ void runner_do_recv_part(struct runner *r, struct cell *c, int clear_sorts,
timebin_t time_bin_max = 0;
float h_max = 0.f;
#ifdef SWIFT_DEBUG_CHECKS
if(c->nodeID == engine_rank)
error("Updating a local cell!");
#endif
/* Clear this cell's sorted mask. */
if (clear_sorts) c->sorted = 0;
......@@ -1597,6 +1602,11 @@ void runner_do_recv_gpart(struct runner *r, struct cell *c, int timer) {
timebin_t time_bin_min = num_time_bins;
timebin_t time_bin_max = 0;
#ifdef SWIFT_DEBUG_CHECKS
if(c->nodeID == engine_rank)
error("Updating a local cell!");
#endif
/* If this cell is a leaf, collect the particle data. */
if (!c->split) {
......@@ -1670,6 +1680,11 @@ void runner_do_recv_spart(struct runner *r, struct cell *c, int timer) {
timebin_t time_bin_min = num_time_bins;
timebin_t time_bin_max = 0;
#ifdef SWIFT_DEBUG_CHECKS
if(c->nodeID == engine_rank)
error("Updating a local cell!");
#endif
/* If this cell is a leaf, collect the particle data. */
if (!c->split) {
......
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