From a37877941dd1ac48612ce46aa238a17de59abf29 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Sun, 23 Aug 2020 16:58:49 +0200
Subject: [PATCH] Fix typo in the FOF code revealed by the new clang-10 warning
 options

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

diff --git a/src/fof.c b/src/fof.c
index 58c9268d67..f51bf74914 100644
--- a/src/fof.c
+++ b/src/fof.c
@@ -279,7 +279,7 @@ void fof_allocate(const struct space *s, const long long total_nr_DM_particles,
   } else {
 
     /* Safety check */
-    if (!(s->e->policy | engine_policy_cosmology))
+    if (!(s->e->policy & engine_policy_cosmology))
       error(
           "Attempting to run FoF on a simulation using cosmological "
           "information but cosmology was not initialised");
-- 
GitLab