From 7bf76a887d71e4a05c0f10e1ebf190abdb3d60df Mon Sep 17 00:00:00 2001
From: "Peter W. Draper" <p.w.draper@durham.ac.uk>
Date: Tue, 18 Jul 2017 15:27:16 +0100
Subject: [PATCH] We can run using MPI without METIS, so allow that

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

diff --git a/src/engine.c b/src/engine.c
index 99802dc26c..f5b545288e 100644
--- a/src/engine.c
+++ b/src/engine.c
@@ -907,7 +907,8 @@ void engine_repartition(struct engine *e) {
     message("took %.3f %s.", clocks_from_ticks(getticks() - tic),
             clocks_getunit());
 #else
-  error("SWIFT was not compiled with MPI and METIS support.");
+  if (e->reparttype->type != REPART_NONE)
+    error("SWIFT was not compiled with MPI and METIS support.");
 #endif
 }
 
-- 
GitLab