From cbd2110897c9774b0a5a80a7c4e5b14c118e66cd Mon Sep 17 00:00:00 2001
From: John Helly <j.c.helly@durham.ac.uk>
Date: Fri, 13 Nov 2020 15:15:30 +0000
Subject: [PATCH] Only compute initial FoF time if seeding black holes

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

diff --git a/src/engine_config.c b/src/engine_config.c
index e5bdff2572..dda3bf3adb 100644
--- a/src/engine_config.c
+++ b/src/engine_config.c
@@ -583,7 +583,7 @@ void engine_config(int restart, int fof, struct engine *e,
     }
 
     /* Find the time of the first stf output */
-    if (e->policy & engine_policy_fof) {
+    if (e->policy & engine_policy_fof && e->fof_properties->seed_black_holes_enabled) {
       engine_compute_next_fof_time(e);
     }
 
-- 
GitLab