From 456c53d7a3e07908cf8b84c97189bbe75d17cf46 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Mon, 25 Mar 2019 14:24:35 +0100
Subject: [PATCH] In the initialisation step, when computing the densities
 only, there is no need to keep the tend,rho and gpart communications.

---
 src/engine.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/engine.c b/src/engine.c
index 52a2e13c0f..89e9afd698 100644
--- a/src/engine.c
+++ b/src/engine.c
@@ -2724,7 +2724,9 @@ void engine_skip_force_and_kick(struct engine *e) {
         t->type == task_type_star_formation ||
         t->type == task_type_extra_ghost ||
         t->subtype == task_subtype_gradient ||
-        t->subtype == task_subtype_stars_feedback)
+        t->subtype == task_subtype_stars_feedback ||
+        t->subtype == task_subtype_tend || t->subtype == task_subtype_rho ||
+        t->subtype == task_subtype_gpart)
       t->skip = 1;
   }
 
-- 
GitLab