From d8025de1b04b4f47a0296a6314f8df78707f8d5a Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <matthieu.schaller@durham.ac.uk>
Date: Tue, 6 Jun 2017 10:39:17 +0100
Subject: [PATCH] More symmetry in one of the conditions to activate a subcell
 task

---
 src/cell.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cell.c b/src/cell.c
index 3acd5ac00f..43bb067ab6 100644
--- a/src/cell.c
+++ b/src/cell.c
@@ -1359,7 +1359,7 @@ void cell_activate_subcell_tasks(struct cell *ci, struct cell *cj,
                ci->dmin &&
            2.f * kernel_gamma * space_stretch *
                    (cj->h_max_old + cj->dx_max_old) <
-               ci->dmin) {
+               cj->dmin) {
 
     /* Get the type of pair if not specified explicitly. */
     double shift[3];
-- 
GitLab