Skip to content

Commit e412206

Browse files
author
Ilya Mandel
committed
Clean up random draw
1 parent 964275c commit e412206

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BaseStar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3909,7 +3909,7 @@ double BaseStar::DrawSNKickMagnitude(const double p_Sigma,
39093909
if (thisSNevent == SN_EVENT::CCSN || (thisSNevent == SN_EVENT::PPISN && OPTIONS->NatalKickForPPISN())) {
39103910
// maximum kick of DISBERG_MANDEL_MAX_KICK = 1000 km/s, following Disberg & Mandel (2025)
39113911
// normalise the draw so that the kick is uniformly drawn from the inverse CDF below this maximum
3912-
double cdfMax = gsl_cdf_lognormal(DISBERG_MANDEL_MAX_KICK, DISBERG_MANDEL_MU, DISBERG_MANDEL_SIGMA);
3912+
double cdfMax = gsl_cdf_lognormal_P(DISBERG_MANDEL_MAX_KICK, DISBERG_MANDEL_MU, DISBERG_MANDEL_SIGMA);
39133913
kickMagnitude = gsl_cdf_lognormal_Pinv(p_Rand*cdfMax, DISBERG_MANDEL_MU, DISBERG_MANDEL_SIGMA);
39143914
}
39153915
else

0 commit comments

Comments
 (0)