Skip to content

Commit

Permalink
added in the preSnMass recordings for AIC and SNIa so that those valu…
Browse files Browse the repository at this point in the history
…es are correct in the SN output
  • Loading branch information
reinhold-willcox committed Jan 16, 2024
1 parent 40ca4fe commit 7acc992
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/WhiteDwarfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ STELLAR_TYPE WhiteDwarfs::ResolveAIC() {

if (!IsSupernova()) return m_StellarType; // shouldn't be here if no SN

m_SupernovaDetails.totalMassAtCOFormation = m_Mass; // Don't need to worry about stashing SNe for SSE since this is a uniquely binary phenomenon
m_SupernovaDetails.HeCoreMassAtCOFormation = 0.0;
m_SupernovaDetails.COCoreMassAtCOFormation = 0.0;
m_SupernovaDetails.coreMassAtCOFormation = 0.0;

m_Mass = MECS_REM; // defined in constants.h

m_SupernovaDetails.drawnKickMagnitude = 0.0;
Expand All @@ -234,12 +239,17 @@ STELLAR_TYPE WhiteDwarfs::ResolveAIC() {
STELLAR_TYPE WhiteDwarfs::ResolveSNIa() {

if (!IsSupernova()) return m_StellarType; // shouldn't be here if no SN


m_SupernovaDetails.totalMassAtCOFormation = m_Mass; // Don't need to worry about stashing SNe for SSE since this is a uniquely binary phenomenon
m_SupernovaDetails.HeCoreMassAtCOFormation = 0.0;
m_SupernovaDetails.COCoreMassAtCOFormation = 0.0;
m_SupernovaDetails.coreMassAtCOFormation = 0.0;

m_Mass = 0.0;
m_Radius = 0.0;
m_Luminosity = 0.0;
m_Age = 0.0;

m_SupernovaDetails.drawnKickMagnitude = 0.0;
m_SupernovaDetails.kickMagnitude = 0.0;

Expand Down

0 comments on commit 7acc992

Please sign in to comment.