Skip to content

Commit 298779c

Browse files
committed
Updates to ResolveEnvelopeLoss
1 parent cb5f1a0 commit 298779c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/EAGB.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ STELLAR_TYPE EAGB::ResolveEnvelopeLoss(bool p_NoCheck) {
719719
timescales(tinf2_HeGB) = timescales(tx_HeGB) + ((1.0 / (q1 * gbParams(AHe) * gbParams(B))) * PPOW((gbParams(B) / gbParams(Lx)), q1_q));
720720

721721
m_Age = HeGB::CalculateAgeOnPhase_Static(m_Mass, m_COCoreMass, timescales(tHeMS), m_GBParams);
722-
HeHG::CalculateGBParams_Static(m_Mass0, m_Mass, m_LogMetallicityXi, m_MassCutoffs, m_AnCoefficients, m_BnCoefficients, m_GBParams); // IM: order of type change and parameter updates to be revisited (e.g., why not just CalculateGBParams(m_Mass0, m_GBParams);
722+
HeHG::CalculateGBParams_Static(m_Mass0, m_Mass, m_LogMetallicityXi, m_MassCutoffs, m_AnCoefficients, m_BnCoefficients, m_GBParams); // IM: order of type change and parameter updates to be revisited (e.g., why not just CalculateGBParams(m_Mass0, m_GBParams)?)
723723
m_Luminosity = HeGB::CalculateLuminosityOnPhase_Static(m_COCoreMass, gbParams(B), gbParams(D));
724724

725725
double R1, R2;

src/GiantBranch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ double GiantBranch::CalculateRemnantRadius() const {
693693
double GiantBranch::CalculateRadialExtentConvectiveEnvelope() const{
694694

695695
BaseStar clone = *this; // clone this star so can manipulate without changes persisiting
696-
clone.ResolveEnvelopeLoss(); // update clone's attributes after envelope is lost
696+
clone.ResolveEnvelopeLoss(true); // update clone's attributes after envelope is lost
697697

698698
return m_Radius - clone.Radius();
699699
}

0 commit comments

Comments
 (0)