You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: online-docs/pages/Getting started/building-COMPAS.rst
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,11 @@ in which all source files are compiled, type::
54
54
The `clean` option instructs ``make`` to remove all existing object files (.o), and the COMPAS executable. A subsequent ``make`` is then forced to compile
55
55
all source files and link the resultant object files (and external libraries) into a new executable.
56
56
57
+
The executable can be tested with, e.g.,
58
+
59
+
./COMPAS -v
60
+
61
+
which will display the code version.
57
62
58
63
See :doc:`../Developer guide/Developer build/COMPAS-local-build` for a detailed description of ``Makefile`` functionality.
// update mass of star1 according to mass loss and mass transfer, then update age accordingly
2134
2134
(void)m_Star1->UpdateAttributes(m_Star1->MassPrev() - m_Star1->Mass() + m_Star1->MassLossDiff() + m_Star1->MassTransferDiff(), 0.0); // update mass for star1
2135
-
m_Star1->UpdateInitialMass(); // update initial mass of star1 (MS, HG & HeMS) JR: todo: fix this kludge one day - mass0 is overloaded, and isn't always "initial mass"
2135
+
m_Star1->UpdateInitialMass(); // update effective initial mass of star1 (MS, HG & HeMS)
2136
2136
m_Star1->UpdateAgeAfterMassLoss(); // update age of star1
2137
2137
m_Star1->ApplyMassTransferRejuvenationFactor(); // apply age rejuvenation factor for star1
2138
2138
m_Star1->UpdateAttributes(0.0, 0.0, true);
2139
2139
2140
2140
// rinse and repeat for star2
2141
2141
(void)m_Star2->UpdateAttributes(m_Star2->MassPrev() - m_Star2->Mass() + m_Star2->MassLossDiff() + m_Star2->MassTransferDiff(), 0.0); // update mass for star2
2142
-
m_Star2->UpdateInitialMass(); // update initial mass of star 2 (MS, HG & HeMS) JR: todo: fix this kludge one day - mass0 is overloaded, and isn't always "initial mass"
2142
+
m_Star2->UpdateInitialMass(); // update effective initial mass of star 2 (MS, HG & HeMS)
2143
2143
m_Star2->UpdateAgeAfterMassLoss(); // update age of star2
2144
2144
m_Star2->ApplyMassTransferRejuvenationFactor(); // apply age rejuvenation factor for star2
double MZAMS_Mass = (m_MZAMS - m_Mass) / m_MZAMS;// Should m_ZAMS really be m_Mass0 (i.e., account for change in effective mass through mass loss in winds, MS mass transfer?)
0 commit comments