Skip to content

Commit 6626a27

Browse files
authored
Merge pull request #1411 from TeamCOMPAS/BugFix
Fixed random kick draw for MULLERMANDEL prescription
2 parents 5856d88 + 7883e47 commit 6626a27

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/BaseStar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3837,7 +3837,7 @@ double BaseStar::DrawRemnantKickMullerMandel(const double p_COCoreMass,
38373837
sigmaKick = OPTIONS->MullerMandelSigmaKickBH();
38383838
}
38393839

3840-
double quantile0 = gsl_cdf_gaussian_P(0.0, sigmaKick); //quantile of 0 in the Gaussian CDF; the goal is to draw from the cut-off Gaussian since the kick must exceed 0
3840+
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
38413841
double rand = quantile0 + p_Rand * (1.0 - quantile0);
38423842
remnantKick = muKick * (1.0 + gsl_cdf_gaussian_Pinv(rand, sigmaKick));
38433843

src/changelog.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,9 @@
16101610
// - Added missing virtual declaration to ShouldEnvelopeBeExpelledByPulsations
16111611
// - Now calculate mass accretion rate for nuclear timescale mass transfer on the fly to match with donor mass loss rate set by donor mass loss (required to fit into Roche lobe) divided by time step
16121612
// - Fixed random draws of SN kicks to avoid artificial pile-up at boundaries of distribution
1613-
// - Split --muller-mandel-sigma-kick into --muller-mandel-sigma-kick-NS and --muller-mandel-sigma-kick-BH
1613+
// - Split --muller-mandel-sigma-kick into --muller-mandel-sigma-kick-NS and --muller-mandel-sigma-kick-BH
1614+
// 03.22.01 IM - July 20, 2025 - Defect repair
1615+
// - Fixed random kick draw for MULLERMANDEL prescription
16141616

16151617
// Version string format is MM.mm.rr, where
16161618
//
@@ -1621,7 +1623,7 @@
16211623
// if MM is incremented, set mm and rr to 00, even if defect repairs and minor enhancements were also made
16221624
// if mm is incremented, set rr to 00, even if defect repairs were also made
16231625

1624-
const std::string VERSION_STRING = "03.22.00";
1626+
const std::string VERSION_STRING = "03.22.01";
16251627

16261628

16271629
# endif // __changelog_h__

0 commit comments

Comments
 (0)