Skip to content

Commit 50661dd

Browse files
author
Ilya Mandel
committed
Merge branch 'Matlab' of https://github.com/TeamCOMPAS/COMPAS into Matlab
2 parents 4b429b9 + f4f9da5 commit 50661dd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/BaseBinaryStar.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,9 +618,11 @@ class BaseBinaryStar {
618618
// for nuclear timescale accretion efficiency, for which the total accretion mass over the
619619
// duration of the timestep is known), then must estimate it on the fly for consistency
620620
double beta = m_FractionAccreted;
621-
if(utils::Compare(beta, 0.0) < 0)
621+
if (utils::Compare(beta, 0.0) < 0) {
622622
std::tie(std::ignore, beta) = m_Accretor->CalculateMassAcceptanceRate(p_dM / m_Dt,
623-
m_Accretor->CalculateThermalMassAcceptanceRate(accretorRLradius), m_Donor->IsOneOf(He_RICH_TYPES));
623+
m_Accretor->CalculateThermalMassAcceptanceRate(accretorRLradius),
624+
m_Donor->IsOneOf(He_RICH_TYPES));
625+
}
624626

625627
double semiMajorAxis = m_Binary->CalculateMassTransferOrbit(donorMass, -p_dM , *m_Accretor, beta, false);
626628
double RLRadius = semiMajorAxis * (1.0 - m_Binary->Eccentricity()) * CalculateRocheLobeRadius_Static(donorMass - p_dM, accretorMass + (beta * p_dM)) * AU_TO_RSOL;

0 commit comments

Comments
 (0)