From b44437b1cf2323cda1752d3aa7c40e30ddc38e7a Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Wed, 28 Nov 2018 15:51:27 +0100
Subject: [PATCH] Prevent users from running with star formation when running
 the MPI version

---
 examples/main.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/examples/main.c b/examples/main.c
index 596344d327..719a6a459d 100644
--- a/examples/main.c
+++ b/examples/main.c
@@ -513,10 +513,9 @@ int main(int argc, char *argv[]) {
 #ifdef WITH_MPI
   if (with_mpole_reconstruction && nr_nodes > 1)
     error("Cannot reconstruct m-poles every step over MPI (yet).");
-#endif
-
-#ifdef WITH_MPI
   if (with_feedback) error("Can't run with feedback over MPI (yet).");
+  if (with_star_formation)
+    error("Can't run with star formation over MPI (yet)");
 #endif
 
 #if defined(WITH_MPI) && defined(HAVE_VELOCIRAPTOR)
-- 
GitLab