From e58c6b3f3621a214cf7bc6ed4d920fd08bd3ad86 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <matthieu.schaller@durham.ac.uk>
Date: Wed, 15 Jun 2016 17:37:18 +0100
Subject: [PATCH] Typo in sub_subset that leads to a crash in the isothermal
 sphere case.

---
 src/runner_doiact.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/runner_doiact.h b/src/runner_doiact.h
index 7fe19af853..bf16cb8f82 100644
--- a/src/runner_doiact.h
+++ b/src/runner_doiact.h
@@ -2361,7 +2361,7 @@ void DOSUB_SUBSET(struct runner *r, struct cell *ci, struct part *parts,
             DOSUB_SUBSET(r, ci->progeny[7], parts, ind, count, cj->progeny[0],
                          -1, 0);
           if (ci->progeny[7] != NULL && cj->progeny[0] == sub)
-            DOSUB_SUBSET(r, ci->progeny[0], parts, ind, count, cj->progeny[7],
+            DOSUB_SUBSET(r, cj->progeny[0], parts, ind, count, ci->progeny[7],
                          -1, 0);
           break;
 
-- 
GitLab