Skip to content
Snippets Groups Projects
Commit 79f5b76b authored by Folkert Nobels's avatar Folkert Nobels
Browse files

Fix an initialization bug

parent a4e7165d
No related branches found
No related tags found
1 merge request!705Star formation following Schaye08
...@@ -142,7 +142,7 @@ void phys_const_init(const struct unit_system *us, struct swift_params *params, ...@@ -142,7 +142,7 @@ void phys_const_init(const struct unit_system *us, struct swift_params *params,
const_kennicutt_schmidt_units_cgs / const_kennicutt_schmidt_units_cgs /
units_general_cgs_conversion_factor(us, dimension_ks); units_general_cgs_conversion_factor(us, dimension_ks);
const float dimension_M_per_pc2 = {1, -2, 0, 0, 0}; const float dimension_M_per_pc2[5] = {1, -2, 0, 0, 0};
internal_const->const_solar_mass_per_parsec2 = internal_const->const_solar_mass_per_parsec2 =
const_solar_mass_per_squared_parsec / const_solar_mass_per_squared_parsec /
units_general_cgs_conversion_factor(us, dimension_M_per_pc2); units_general_cgs_conversion_factor(us, dimension_M_per_pc2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment