From 1f38f8325c329d6fe31b808655df6d91b9e6bbf7 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Sat, 23 Mar 2019 16:51:36 +0100
Subject: [PATCH] Revert "Make a hydro super pointer for cells with stars and
 no densit task."

This reverts commit 6ad75bd5808c70bd50d21b706deaa79f65fb920c.
---
 src/cell.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/cell.c b/src/cell.c
index c7c10bcf66..72e3884988 100644
--- a/src/cell.c
+++ b/src/cell.c
@@ -3630,8 +3630,7 @@ void cell_set_super(struct cell *c, struct cell *super, const int with_hydro,
 void cell_set_super_hydro(struct cell *c, struct cell *super_hydro) {
 
   /* Are we in a cell with some kind of self/pair task ? */
-  if (super_hydro == NULL && (c->hydro.density != NULL || c->stars.count > 0))
-    super_hydro = c;
+  if (super_hydro == NULL && c->hydro.density != NULL) super_hydro = c;
 
   /* Set the super-cell */
   c->hydro.super = super_hydro;
-- 
GitLab