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

Do a correct unit conversion between cm^(-3) and your distance unit^(-3)

parent f43eab5d
No related branches found
No related tags found
1 merge request!705Star formation following Schaye08
...@@ -316,7 +316,7 @@ INLINE static void starformation_init_backend( ...@@ -316,7 +316,7 @@ INLINE static void starformation_init_backend(
/* Conversion of number density from cgs */ /* Conversion of number density from cgs */
static const float dimension_numb_den[5] = {0, -3, 0, 0, 0}; static const float dimension_numb_den[5] = {0, -3, 0, 0, 0};
const double conversion_numb_density = const double conversion_numb_density =
1.f / units_general_cgs_conversion_factor(us, dimension_numb_den); units_general_cgs_conversion_factor(us, dimension_numb_den);
/* Quantities that have to do with the Normal Kennicutt- /* Quantities that have to do with the Normal Kennicutt-
* Schmidt law will be read in this part of the code*/ * Schmidt law will be read in this part of the code*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment