Skip to content

Commit

Permalink
added explicit definition for isUnstable, updated changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
reinhold-willcox committed Mar 21, 2024
1 parent 2542b44 commit faeeafc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/BaseBinaryStar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1879,7 +1879,7 @@ void BaseBinaryStar::CalculateMassTransfer(const double p_Dt) {
bool accretorIsWD = m_Accretor->IsOneOf(WHITE_DWARFS);

// Determine stability
bool isUnstable;
bool isUnstable = false;
if (donorIsHeHGorHeGB && (caseBBAlwaysStable || caseBBAlwaysUnstable || (caseBBAlwaysUnstableOntoNSBH && accretorIsNSorBH))) { // Determine stability based on case BB
isUnstable = (caseBBAlwaysUnstable || (caseBBAlwaysUnstableOntoNSBH && accretorIsNSorBH)); // Already established that donor is HeHG or HeGB - need to check if new case BB prescriptions are added
}
Expand Down
4 changes: 3 additions & 1 deletion src/changelog.h
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,9 @@
// - calling code for MassLossToFitInsideRocheLobe() and Mass0ToMatchDesiredCoreMass() now handles -ve return:
// - if MassLossToFitInsideRocheLobe() returns -ve value (i.e. no root found), the binary immediately enters a CE phase
// - if Mass0ToMatchDesiredCoreMass() returns -ve value (i.e. no root found), an arbitrary value is used for core mass (see code for value)
// 02.42.02 RTW - Mar 21, 2024 - Minor defect repair
// - Added explicit definition `bool isUnstable = false` to avoid confusion in BaseBinaryStar.cpp

const std::string VERSION_STRING = "02.42.01";
const std::string VERSION_STRING = "02.42.02";

# endif // __changelog_h__

0 comments on commit faeeafc

Please sign in to comment.