Skip to content
Snippets Groups Projects
Commit 94a7a509 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Correctly normalize the power-law SNIa delay time distribution.

parent 02bb6dbf
Branches
Tags
1 merge request!954Change the EAGLE SNIa DTD to a properly normalized power-law of slope -1
......@@ -986,6 +986,10 @@ void feedback_props_init(struct feedback_props* fp,
fp->SNIa_DTD_power_law_norm = parser_get_param_float(
params, "EAGLEFeedback:SNIa_DTD_power_law_norm_p_Msun");
/* Renormalize everything such that the integral converges to
'SNIa_DTD_power_law_norm' over 13.6 Gyr. */
fp->SNIa_DTD_power_law_norm /= log(13.6 / fp->SNIa_DTD_delay_Gyr);
} else {
error("Invalid SNIa DTD model: '%s'", temp);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment