Skip to content
Snippets Groups Projects
Commit c1e5b26a authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

No need to check for received unactive cells for the rho communication...

No need to check for received unactive cells for the rho communication sub-type. They can't happen any more.
parent 139fe38b
No related branches found
No related tags found
2 merge requests!305Add another communication sub-type for the gparts. Send the gparts when these tasks get enqueued.,!303MPI send/recv fixes for inactive cells
......@@ -1535,10 +1535,8 @@ void *runner_main(void *data) {
if (t->subtype == task_subtype_tend) {
cell_unpack_ti_ends(ci, t->buff);
free(t->buff);
} else if (t->subtype == task_subtype_xv) {
runner_do_recv_part(r, ci, 1);
/* Only need to update h_max if the cell has active particles */
} else if (t->subtype == task_subtype_rho && cell_is_active(ci, e)) {
} else if (t->subtype == task_subtype_xv ||
t->subtype == task_subtype_rho) {
runner_do_recv_part(r, ci, 1);
} else if (t->subtype == task_subtype_gpart) {
runner_do_recv_gpart(r, ci, 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment