From d99d05ca9e08aac53eb0a9cdcbae1d35638fa2d8 Mon Sep 17 00:00:00 2001
From: Ulli <usteinwandel@flatironinstitute.org>
Date: Tue, 28 Nov 2023 23:01:01 -0500
Subject: [PATCH] fixed a small precompiler flag issue with the magnetic signal
 velocity, confirmed that the code doesn't crash becasue of the definition of
 magnetic signal velocity so it must be somethig more fundamental

---
 src/data/allvars.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/data/allvars.h b/src/data/allvars.h
index 122fd03..4270aed 100644
--- a/src/data/allvars.h
+++ b/src/data/allvars.h
@@ -24,11 +24,16 @@
 #include "../io/parameters.h"
 
 #ifdef MHD
+
+#ifndef MAGNETIC_SIGNALVEL
 #define MAGNETIC_SIGNALVEL
+#endif
+
 #ifndef DIVBFORCE 
 #define DIVBFORCE 1
 #endif
-#endif
+
+#endif //MHD
 
 /** Data which is the SAME for all tasks (mostly code parameters read
  * from the parameter file).  Holding this data in a structure is
-- 
GitLab