From c32a558f9a5db3695dcb63b4d2015b259c0dbf28 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Mon, 27 Jul 2020 16:44:46 +0200
Subject: [PATCH] Fix mistake in the display of the constants at the start of a
 run. The reduced Hubble constant is 100km/s/Mpc not 1km/s/Mpc

---
 src/physical_constants.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/physical_constants.c b/src/physical_constants.c
index 8fbfd6924c..96a9ac3d3e 100644
--- a/src/physical_constants.c
+++ b/src/physical_constants.c
@@ -162,12 +162,14 @@ void phys_const_print(const struct phys_const *internal_const) {
   message("%25s = %e", "Thomson cross-section",
           internal_const->const_thomson_cross_section);
   message("%25s = %e", "Electron-Volt", internal_const->const_electron_volt);
+  message("%25s = %e", "Proton mass", internal_const->const_proton_mass);
   message("%25s = %e", "Year", internal_const->const_year);
   message("%25s = %e", "Astronomical Unit",
           internal_const->const_astronomical_unit);
   message("%25s = %e", "Parsec", internal_const->const_parsec);
   message("%25s = %e", "Solar mass", internal_const->const_solar_mass);
-  message("%25s = %e", "km/s/Mpc", internal_const->const_reduced_hubble);
+  message("%25s = %e", "H_0 / h = 100 km/s/Mpc",
+          internal_const->const_reduced_hubble);
 }
 
 #if defined(HAVE_HDF5)
@@ -189,7 +191,7 @@ void phys_const_print_snapshot(hid_t h_file, const struct phys_const *p) {
 #ifdef SWIFT_USE_GADGET2_PHYSICAL_CONSTANTS
   io_write_attribute_s(h_grp, "Constants choice", "Gadget-2 defaults");
 #else
-  io_write_attribute_s(h_grp, "Constants choice", "SWIFT defaults (PDG 2017)");
+  io_write_attribute_s(h_grp, "Constants choice", "SWIFT defaults (PDG 2019)");
 #endif
 
   /* Start by writing all the constants in CGS */
-- 
GitLab