Commit ad8fd403 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

In engine_marktask() only check whether to rebuild the space for density...

In engine_marktask() only check whether to rebuild the space for density pair/sub-pair, not for all sub-types of pair/sub-pair.
parent 7085d665
......@@ -2579,9 +2579,6 @@ void engine_marktasks_mapper(void *map_data, int num_elements,
/* If this task does not involve any active cells, skip it. */
if (!cell_is_active(t->ci, e) && !cell_is_active(t->cj, e)) continue;
/* Too much particle movement? */
if (cell_need_rebuild_for_pair(ci, cj)) *rebuild_space = 1;
/* Only activate tasks that involve a local active cell. */
if ((cell_is_active(ci, e) && ci->nodeID == engine_rank) ||
(cj != NULL && cell_is_active(cj, e) && cj->nodeID == engine_rank)) {
......@@ -2613,6 +2610,9 @@ void engine_marktasks_mapper(void *map_data, int num_elements,
/* Only interested in density tasks as of here. */
if (t->subtype == task_subtype_density) {
/* Too much particle movement? */
if (cell_need_rebuild_for_pair(ci, cj)) *rebuild_space = 1;
#ifdef WITH_MPI
/* Activate the send/recv tasks. */
if (ci->nodeID != engine_rank) {
......
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