From 3896d2bc2cae97c8a2e1652d900287af941633d6 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Thu, 5 Mar 2020 23:23:07 +0800
Subject: [PATCH] Also add the Gadget-2 value of the constant H_0/h

---
 src/physical_constants_cgs.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/physical_constants_cgs.h b/src/physical_constants_cgs.h
index 62e0d90245..562e404669 100644
--- a/src/physical_constants_cgs.h
+++ b/src/physical_constants_cgs.h
@@ -130,10 +130,20 @@ const double const_T_CMB_0_cgs = 2.7255;
 /*! Primordial Helium fraction (from WMAP7) [-] */
 const double const_primordial_He_fraction_cgs = 0.248;
 
+#ifdef SWIFT_USE_GADGET2_PHYSICAL_CONSTANTS
+
+/*! Reduced Hubble constant units (i.e. H_0 / h == 100 km / s / Mpc in CGS)
+ * [s^-1] */
+const double const_reduced_hubble_cgs = 3.2407789e-18;
+
+#else
+
 /*! Reduced Hubble constant units (i.e. H_0 / h == 100 km / s / Mpc in CGS)
  * [s^-1] */
 const double const_reduced_hubble_cgs = 3.2407792894458e-18;
 
+#endif
+
 /*! Case B recombination coefficient for hydrogen at 10^4 K [cm^3 s^-1] */
 const double const_caseb_recomb_cgs = 2.6e-13;
 
-- 
GitLab