From 600d1aa6821c76eff20ed31f21264656b01a1dfb Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <matthieu.schaller@durham.ac.uk>
Date: Thu, 5 Jul 2018 12:10:30 +0200
Subject: [PATCH] Removed the gravity_ghost tasks that have no use any more.

---
 src/cell.c  | 2 --
 src/cell.h  | 3 ---
 src/space.c | 2 --
 3 files changed, 7 deletions(-)

diff --git a/src/cell.c b/src/cell.c
index 585aa65acb..94f8c4a105 100644
--- a/src/cell.c
+++ b/src/cell.c
@@ -2295,8 +2295,6 @@ int cell_unskip_gravity_tasks(struct cell *c, struct scheduler *s) {
   if (c->nodeID == nodeID && cell_is_active_gravity(c, e)) {
 
     if (c->init_grav != NULL) scheduler_activate(s, c->init_grav);
-    if (c->grav_ghost_in != NULL) scheduler_activate(s, c->grav_ghost_in);
-    if (c->grav_ghost_out != NULL) scheduler_activate(s, c->grav_ghost_out);
     if (c->kick1 != NULL) scheduler_activate(s, c->kick1);
     if (c->kick2 != NULL) scheduler_activate(s, c->kick2);
     if (c->timestep != NULL) scheduler_activate(s, c->timestep);
diff --git a/src/cell.h b/src/cell.h
index 3be2bb81c4..e53bf7e305 100644
--- a/src/cell.h
+++ b/src/cell.h
@@ -255,9 +255,6 @@ struct cell {
   /*! The task to compute time-steps */
   struct task *timestep;
 
-  /*! Task linking the FFT mesh to the rest of gravity tasks */
-  struct task *grav_ghost_in, *grav_ghost_out;
-
   /*! Task computing long range non-periodic gravity interactions */
   struct task *grav_long_range;
 
diff --git a/src/space.c b/src/space.c
index e80cc37190..f52715260a 100644
--- a/src/space.c
+++ b/src/space.c
@@ -187,8 +187,6 @@ void space_rebuild_recycle_mapper(void *map_data, int num_elements,
     c->drift_gpart = NULL;
     c->cooling = NULL;
     c->sourceterms = NULL;
-    c->grav_ghost_in = NULL;
-    c->grav_ghost_out = NULL;
     c->grav_long_range = NULL;
     c->grav_down = NULL;
     c->super = c;
-- 
GitLab