Skip to content

Commit b902b58

Browse files
committed
Fixed logical flaw in if/else
1 parent 7b75a11 commit b902b58

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/BaseBinaryStar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1526,7 +1526,7 @@ void BaseBinaryStar::ResolveCommonEnvelopeEvent() {
15261526
m_Flags.stellarMerger = true;
15271527
}
15281528
}
1529-
else {
1529+
if (!m_Flags.stellarMerger) {
15301530

15311531
STELLAR_TYPE stellarType1 = m_Star1->StellarType(); // star 1 stellar type before resolving envelope loss
15321532
STELLAR_TYPE stellarType2 = m_Star2->StellarType(); // star 2 stellar type before resolving envelope loss

src/HG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ double HG::CalculateZeta(ZETA_PRESCRIPTION p_ZetaPrescription) {
751751
*/
752752
ENVELOPE HG::DetermineEnvelopeType() const {
753753

754-
ENVELOPE envelope = ENVELOPE::RADIATIVE; // default envelope type is RADIATIVE
754+
ENVELOPE envelope = ENVELOPE::RADIATIVE; // default envelope type is RADIATIVE
755755

756756
switch (OPTIONS->EnvelopeStatePrescription()) { // which envelope prescription?
757757

src/HeHG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ double HeHG::CalculateLambdaNanjing() const {
325325
*/
326326
ENVELOPE HeHG::DetermineEnvelopeType() const {
327327

328-
ENVELOPE envelope = ENVELOPE::RADIATIVE; // default envelope type is RADIATIVE
328+
ENVELOPE envelope = ENVELOPE::RADIATIVE; // default envelope type is RADIATIVE
329329

330330
switch (OPTIONS->EnvelopeStatePrescription()) { // which envelope prescription?
331331

src/constants.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2623,7 +2623,7 @@ const std::map<ANY_STAR_PROPERTY, PROPERTY_DETAILS> ANY_STAR_PROPERTY_DETAIL = {
26232623
{ ANY_STAR_PROPERTY::ZETA_HURLEY, { TYPENAME::DOUBLE, "Zeta_Hurley", "-", 14, 6 }},
26242624
{ ANY_STAR_PROPERTY::ZETA_HURLEY_HE, { TYPENAME::DOUBLE, "Zeta_Hurley_He", "-", 14, 6 }},
26252625
{ ANY_STAR_PROPERTY::ZETA_SOBERMAN, { TYPENAME::DOUBLE, "Zeta_Soberman", "-", 14, 6 }},
2626-
{ ANY_STAR_PROPERTY::ZETA_SOBERMAN_HE, { TYPENAME::DOUBLE, "Zeta_SoberMan_He", "-", 14, 6 }}
2626+
{ ANY_STAR_PROPERTY::ZETA_SOBERMAN_HE, { TYPENAME::DOUBLE, "Zeta_Soberman_He", "-", 14, 6 }}
26272627
};
26282628

26292629
// map BINARY_PROPERTY_DETAIL

utils/example_plots/methods_paper_plots/detailed_evolution/pythonSubmitDemo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class pythonProgramOptions:
186186
common_envelope_mass_accretion_max = 0.10 # For 'MACLEOD+2014' [Msol]
187187
envelope_state_prescription = 'LEGACY'
188188
common_envelope_allow_radiative_envelope_survive = False
189-
common_envelope_allow_immediate_RLOF_post_CE_survive = False
189+
common_envelope_allow_immediate_RLOF_post_CE_survive = True
190190

191191
mass_loss_prescription = 'VINK'
192192
luminous_blue_variable_prescription = 'HURLEY_ADD'

0 commit comments

Comments
 (0)