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

Add the metallicity in threshold

parent 25c40d2b
Branches
Tags
1 merge request!705Star formation following Schaye08
......@@ -164,8 +164,9 @@ INLINE static int star_formation_potential_to_become_star(
/* If the maximum density is not exceeded check if the redshift dependent
* one is exceeded */
} else {
/* NEED TO USE A PROPER WAY OF FINDING Z */
double Z = 0.002;
/* Get the metallicity from the chemistry struct
* Do we use SMOOTHED OR NON SMOOTHED IN EAGLE???*/
double Z = p->chemistry_data.smoothed_metal_mass_fraction_total;
double den_crit_current =
starform->den_crit * pow(Z * starform->Z0_inv, starform->n_Z0);
if (p->rho > den_crit_current) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment