Skip to content

Commit c5d02c0

Browse files
Avoid SN remnants more massive than preSN stars in Mandel&Mueller prescription (#684)
* Changed GiantBranch::CalculateRemnantMassByMullerMandel() to ensure that the remnant mass is no great than the He core mass * Fixed typo Changed to ensure that the remnant mass is no great than the He core mass to to ensure that the remnant mass is no greater than the He core mass Co-authored-by: jeffriley <jeffrey.riley@monash.edu>
1 parent 1a1a615 commit c5d02c0

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/GiantBranch.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,24 +1158,24 @@ double GiantBranch::CalculateRemnantMassByMullerMandel(const double p_COCoreMass
11581158
remnantMass = p_HeCoreMass;
11591159
}
11601160
else {
1161-
while (remnantMass<MULLERMANDEL_MAXNS || remnantMass > (p_COCoreMass + p_HeCoreMass)) {
1161+
while (remnantMass<MULLERMANDEL_MAXNS || remnantMass > p_HeCoreMass) {
11621162
remnantMass = MULLERMANDEL_MUBH * p_COCoreMass + RAND->RandomGaussian(MULLERMANDEL_SIGMABH);
11631163
}
11641164
}
11651165
}
11661166
else { // this is an NS
11671167
if (utils::Compare(p_COCoreMass, MULLERMANDEL_M1) < 0) {
1168-
while (remnantMass < MULLERMANDEL_MINNS || remnantMass > MULLERMANDEL_MAXNS || remnantMass > (p_COCoreMass + p_HeCoreMass)) {
1168+
while (remnantMass < MULLERMANDEL_MINNS || remnantMass > MULLERMANDEL_MAXNS || remnantMass > p_HeCoreMass) {
11691169
remnantMass = MULLERMANDEL_MU1 + RAND->RandomGaussian(MULLERMANDEL_SIGMA1);
11701170
}
11711171
}
11721172
else if (utils::Compare(p_COCoreMass, MULLERMANDEL_M2) < 0) {
1173-
while (remnantMass < MULLERMANDEL_MINNS || remnantMass > MULLERMANDEL_MAXNS || remnantMass > (p_COCoreMass + p_HeCoreMass)) {
1173+
while (remnantMass < MULLERMANDEL_MINNS || remnantMass > MULLERMANDEL_MAXNS || remnantMass > p_HeCoreMass) {
11741174
remnantMass = MULLERMANDEL_MU2A + MULLERMANDEL_MU2B / (MULLERMANDEL_M2 - MULLERMANDEL_M1) * (p_COCoreMass - MULLERMANDEL_M1) + RAND->RandomGaussian(MULLERMANDEL_SIGMA2);
11751175
}
11761176
}
11771177
else {
1178-
while (remnantMass < MULLERMANDEL_MINNS || remnantMass > MULLERMANDEL_MAXNS || remnantMass > (p_COCoreMass+p_HeCoreMass)) {
1178+
while (remnantMass < MULLERMANDEL_MINNS || remnantMass > MULLERMANDEL_MAXNS || remnantMass > p_HeCoreMass) {
11791179
remnantMass = MULLERMANDEL_MU3A + MULLERMANDEL_MU3B / (MULLERMANDEL_M3 - MULLERMANDEL_M2) * (p_COCoreMass - MULLERMANDEL_M2) + RAND->RandomGaussian(MULLERMANDEL_SIGMA3);
11801180
}
11811181
}

src/changelog.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,9 @@
830830
// 02.25.04 IM - Nov 4, 2021 - Minor fixes
831831
// - More surive->survive typo fixes in python files to address issue #660
832832
// - Documentation edits to reflect new options common-envelope-allow-radiative-envelope-survive and common-envelope-allow-immediate-rlof-post-ce-survive options
833+
// 02.25.05 IM - Nov 4, 2021 - Defect repair:
834+
// - Changed GiantBranch::CalculateRemnantMassByMullerMandel() to ensure that the remnant mass is no greater than the He core mass
833835

834-
const std::string VERSION_STRING = "02.25.04";
836+
const std::string VERSION_STRING = "02.25.05";
835837

836838
# endif // __changelog_h__

0 commit comments

Comments
 (0)