Skip to content

Commit a932eef

Browse files
author
Ilya Mandel
committed
USSN simple tweak
1 parent c780a50 commit a932eef

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/BaseStar.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3848,6 +3848,9 @@ double BaseStar::DrawRemnantKickMullerMandel(const double p_COCoreMass,
38483848
double quantile0 = gsl_cdf_gaussian_P(-1.0, sigmaKick); //quantile of -1 in the Gaussian CDF; the goal is to draw from the cut-off Gaussian since the kick must exceed 0
38493849
double rand = quantile0 + p_Rand * (1.0 - quantile0);
38503850
remnantKick = muKick * (1.0 + gsl_cdf_gaussian_Pinv(rand, sigmaKick));
3851+
3852+
if (utils::SNEventType(m_SupernovaDetails.events.current) == SN_EVENT::USSN ) // overwrite USSN kick prescription
3853+
remnantKick = OPTIONS->KickMagnitudeDistributionSigmaForUSSN();
38513854

38523855
return remnantKick;
38533856
}
@@ -4022,7 +4025,7 @@ double BaseStar::CalculateSNKickMagnitude(const double p_RemnantMass, const doub
40224025

40234026
if (error == ERROR::NONE) { // check for errors
40244027
// no errors - draw kick magnitude
4025-
vK = DrawSNKickMagnitude(sigma, m_SupernovaDetails.COCoreMassAtCOFormation, m_SupernovaDetails.kickMagnitudeRandom, p_EjectaMass, p_RemnantMass);
4028+
vK = DrawSNKickMagnitude(sigma, m_SupernovaDetails.COCoreMassAtCOFormation, m_SupernovaDetails.kickMagnitudeRandom, p_EjectaMass, p_RemnantMass;
40264029
}
40274030
}
40284031
else { // user supplied kick parameters and wants to use supplied kick magnitude, so ...

0 commit comments

Comments
 (0)