Skip to content

Commit

Permalink
Fix for issue TeamCOMPAS#1012
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffriley committed Dec 11, 2023
1 parent a07f366 commit ea0a788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BaseBinaryStar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1893,7 +1893,7 @@ void BaseBinaryStar::CalculateMassTransfer(const double p_Dt) {
// NOTE: Critical mass ratio is defined as mAccretor/mDonor
double qCrit = m_Donor->CalculateCriticalMassRatio(m_Accretor->IsDegenerate());

isUnstable = (m_Accretor->Mass() / m_Donor->Mass()) < qCrit;
isUnstable = (m_Accretor->Mass()/m_Donor->Mass()) < qCrit;
m_FractionAccreted = 1.0; // Accretion is assumed fully conservative for qCrit calculations
}
else { // Determine stability based on zetas
Expand Down

0 comments on commit ea0a788

Please sign in to comment.