From a2a8b72cd5bfb7c863e17d68e1029e5963163fc2 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Wed, 19 Dec 2018 10:24:11 +0100
Subject: [PATCH] Prevent the use of vectorization when running with chemistry.

---
 examples/main.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/examples/main.c b/examples/main.c
index 1d94cd49d0..fa4224af98 100644
--- a/examples/main.c
+++ b/examples/main.c
@@ -463,6 +463,14 @@ int main(int argc, char *argv[]) {
     error("VEOCIraptor not yet enabled over MPI.");
 #endif
 
+    /* Temporary early aborts for modes not supported with hand-vec. */
+#if defined(WITH_VECTORIZATION)
+  if (with_chemistry)
+    error(
+        "Cannot run with chemistry and hand-vectorization (yet). "
+        "Use --disable-hand-vec at configure time.");
+#endif
+
   /* Check that we can write the snapshots by testing if the output
    * directory exists and is searchable and writable. */
   char basename[PARSER_MAX_LINE_SIZE];
-- 
GitLab