Commit c32a558f authored by Matthieu Schaller's avatar Matthieu Schaller

Fix mistake in the display of the constants at the start of a run. The reduced...

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
parent 11e752ba
......@@ -162,12 +162,14 @@ void phys_const_print(const struct phys_const *internal_const) {
message("%25s = %e", "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",
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",
#if defined(HAVE_HDF5)
......@@ -189,7 +191,7 @@ void phys_const_print_snapshot(hid_t h_file, const struct phys_const *p) {
io_write_attribute_s(h_grp, "Constants choice", "Gadget-2 defaults");
io_write_attribute_s(h_grp, "Constants choice", "SWIFT defaults (PDG 2017)");
io_write_attribute_s(h_grp, "Constants choice", "SWIFT defaults (PDG 2019)");
/* Start by writing all the constants in CGS */
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment