From a798ebdd8410a6adfe8c97318a6aebebd464bb9e Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Wed, 8 Jan 2020 10:16:40 +0000
Subject: [PATCH] Allow users to run with '--temperature' when running with the
 'NONE' cooling model.

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

diff --git a/examples/main.c b/examples/main.c
index 8cbbf6917b..13888fe0ea 100644
--- a/examples/main.c
+++ b/examples/main.c
@@ -858,9 +858,9 @@ int main(int argc, char *argv[]) {
 
       /* Initialise the cooling function properties */
 #ifdef COOLING_NONE
-    if (with_cooling || with_temperature) {
+    if (with_cooling) {
       error(
-          "ERROR: Running with cooling / temperature calculation"
+          "ERROR: Running with cooling calculation"
           " but compiled without it.");
     }
 #else
-- 
GitLab