Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/GiantBranch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1320,6 +1320,8 @@ double GiantBranch::CalculateRemnantMassByMaltsev2024(const double p_COCoreMass,
delete newStar; newStar = nullptr; // return the memory allocated for the new star
}

if (massTransferCase == MT_CASE::NONE && HydrogenAbundanceSurface() == 0.0) massTransferCase = MT_CASE::B; // if a star was stripped by winds, treat it as if it experienced Case B mass transfer

// apply the appropriate remnant mass prescription for the chosen MT case
switch (massTransferCase) { // which MT_CASE?

Expand Down
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ifneq ($(filter staticfast,$(MAKECMDGOALS)),)
endif


CXXFLAGS := -std=c++17 -g -fnon-call-exceptions -Wall -Woverloaded-virtual -Wno-vla-cxx-extension $(OPTFLAGS)
CXXFLAGS := -std=c++17 -g -fnon-call-exceptions -Wall -Woverloaded-virtual -Wno-vla-extension $(OPTFLAGS)
ICFLAGS := -I$(GSLINCDIR) -I$(BOOSTINCDIR) -I$(HDF5INCDIR) -I.

LIBS := -lm -lz -ldl -lpthread
Expand Down
3 changes: 2 additions & 1 deletion src/WhiteDwarfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ double WhiteDwarfs::CalculateEtaPTY(const double p_MassTransferRate) {
etaPTY = -WD_PIERSANTI_M102_G0 + WD_PIERSANTI_M102_G1 * massRate - WD_PIERSANTI_M102_G2 * massRate_2 + WD_PIERSANTI_M102_G3 * massRate_3;
}

return etaPTY;
// Returned eta should be between 0 and 1
return std::min(std::max(etaPTY, 0.0), 1.0);
}


Expand Down
5 changes: 4 additions & 1 deletion src/changelog.h
Original file line number Diff line number Diff line change
Expand Up @@ -1647,6 +1647,9 @@
// - Fixed online docs for omissions in v03.22.02:
// - fixed description for "--initial-mass-function" in "program-options-list-defaults.rst", and
// - changed "--initial-mass-power" to "--initial-mass-function-power" in "program-options-list-defaults.rst"
// 03.23.01 IM - August 18, 2025 - Enhancement, defect repair:
// - In the MALTSEV SN prescription, treat wind-stripped stars as if they experienced case B mass transfer
// - Limit the output of CalculateEtaPTY() [Helium accretion efficiency onto WDs from Piersanti+ 2014, A3] to be in [0,1]
//
//
// Version string format is MM.mm.rr, where
Expand All @@ -1658,7 +1661,7 @@
// if MM is incremented, set mm and rr to 00, even if defect repairs and minor enhancements were also made
// if mm is incremented, set rr to 00, even if defect repairs were also made

const std::string VERSION_STRING = "03.23.00";
const std::string VERSION_STRING = "03.23.01";


# endif // __changelog_h__