From 1720213923b0c6f1636bd75c1e0fafb527b2ac8d Mon Sep 17 00:00:00 2001 From: Pedro Gonnet <gonnet@google.com> Date: Thu, 27 Feb 2020 22:51:43 +0100 Subject: [PATCH] fix recursion criteria to avoid missing cell pairs. --- src/cell.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/cell.c b/src/cell.c index e3f9a28a59..4f0cdb12ad 100644 --- a/src/cell.c +++ b/src/cell.c @@ -3458,10 +3458,9 @@ void cell_activate_subcell_external_grav_tasks(struct cell *ci, * @brief Run through the hydro tasks in a cell hierarchy and activate recv * tasks for active sub-cells. * - * @params e The #engine. - * @params s The #scheduler. * @params ci The local #cell in a hydro pair. * @params cj The foreign #cell in a hydro pair. + * @params s The #scheduler. */ void cell_activate_hydro_send_recv_tasks(struct cell *ci, struct cell *cj, struct scheduler *s) { @@ -3571,8 +3570,8 @@ void cell_activate_hydro_send_recv_tasks(struct cell *ci, struct cell *cj, } /* Otherwise, recurse. */ - else if (cell_can_split_pair_hydro_task(ci) && - cell_can_split_pair_hydro_task(cj)) { + else if (cell_can_recurse_in_pair_hydro_task(ci) && + cell_can_recurse_in_pair_hydro_task(cj)) { double shift[3]; int sid = space_getsid(e->s, &ci, &cj, shift); -- GitLab