Skip to content

Commit c780a50

Browse files
authored
Merge pull request #1436 from brcekadam/rename_MS_core_option
Renamed MS core prescription option ZERO to HURLEY
2 parents 428dc2d + 17a86e4 commit c780a50

File tree

6 files changed

+12
-8
lines changed

6 files changed

+12
-8
lines changed

compas_python_utils/preprocessing/compasConfigDefault.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
##~!!~## COMPAS option values
2-
##~!!~## File Created Tue Sep 2 22:42:52 2025 by COMPAS v03.26.00
2+
##~!!~## File Created Thu Oct 23 15:46:49 2025 by COMPAS v03.26.01
33
##~!!~##
44
##~!!~## The default COMPAS YAML file (``compasConfigDefault.yaml``), as distributed, has
55
##~!!~## all COMPAS option entries commented so that the COMPAS default value for the
@@ -243,7 +243,7 @@ stringChoices:
243243
# --envelope-state-prescription: 'LEGACY' # Default: 'LEGACY' # Options: ['CONVECTIVE_MASS_FRACTION','FIXED_TEMPERATURE','HURLEY','LEGACY']
244244
# --initial-mass-function: 'KROUPA' # Default: 'KROUPA' # Options: ['KROUPA','UNIFORM','POWERLAW','SALPETER']
245245
# --LBV-mass-loss-prescription: 'HURLEY_ADD' # Default: 'HURLEY_ADD' # Options: ['BELCZYNSKI','HURLEY','HURLEY_ADD','ZERO']
246-
# --main-sequence-core-mass-prescription: 'MANDEL' # Default: 'MANDEL' # Options: ['BRCEK','MANDEL','ZERO']
246+
# --main-sequence-core-mass-prescription: 'MANDEL' # Default: 'MANDEL' # Options: ['BRCEK','MANDEL','HURLEY']
247247
# --mass-loss-prescription: 'MERRITT2025' # Default: 'MERRITT2025' # Options: ['MERRITT2025','BELCZYNSKI2010','HURLEY','ZERO']
248248
# --OB-mass-loss-prescription: 'VINK2021' # Default: 'VINK2021' # Options: ['KRTICKA2018','BJORKLUND2022','VINK2021','VINK2001','ZERO']
249249
# --RSG-mass-loss-prescription: 'DECIN2023' # Default: 'DECIN2023' # Options: ['NJ90','KEE2021','YANG2023','DECIN2023','BEASOR2020','VINKSABHAHIT2023','ZERO']

online-docs/pages/User guide/Program options/program-options-list-defaults.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -812,8 +812,8 @@ Default = 4.2
812812

813813
**--main-sequence-core-mass-prescription** |br|
814814
Main sequence core mass prescription. |br|
815-
Options: {ZERO, MANDEL, BRCEK} |br|
816-
``ZERO`` : No core mass treatment, set to zero |br|
815+
Options: {HURLEY, MANDEL, BRCEK} |br|
816+
``HURLEY`` : Treatment from Hurley et al. (2000), in which MS stars do not have a distinct core and core evolution is not tracked |br|
817817
``MANDEL`` : The core following case A mass transfer is set equal to the expected core mass of a newly formed HG star with mass equal to that of the donor, scaled by the fraction of the donor's MS lifetime at mass transfer |br|
818818
``BRCEK`` : Core mass according to Shikauchi et al. (2024) with added rejuvenation of MS accretors and updated stellar tracks |br|
819819
Default = MANDEL

src/MainSequence.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,8 @@ void MainSequence::UpdateMainSequenceCoreMass(const double p_Dt, const double p_
872872
double age = m_Age; // default is no change
873873

874874
switch (OPTIONS->MainSequenceCoreMassPrescription()) {
875-
case CORE_MASS_PRESCRIPTION::ZERO:
875+
case CORE_MASS_PRESCRIPTION::HURLEY:
876+
// In the Hurley et al. (2000) formalism, MS stars do not have a distinct core and core evolution is not tracked
876877
mainSequenceCoreMass = 0.0;
877878
break;
878879

src/Options.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ class Options {
241241
{ "pulsar-birth-spin-period-distribution", "ZERO", "NOSPIN", false, "20250303" },
242242
{ "tides-prescription", "KAPIL2024", "KAPIL2025", false, "20250525" },
243243
{ "mass-loss-prescription", "MERRITT2024", "MERRITT2025", false, "20250717" },
244+
{ "main-sequence-core-mass-prescription", "ZERO", "HURLEY", false, "20251024" },
244245
{ "use-mass-loss", "TRUE", "MERRITT2025", true, "20250809" },
245246
{ "use-mass-loss", "ON", "MERRITT2025", true, "20250809" },
246247
{ "use-mass-loss", "YES", "MERRITT2025", true, "20250809" },

src/changelog.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1667,6 +1667,8 @@
16671667
// 03.26.00 IM - September 2, 2025 - Enhancement, defect repairs:
16681668
// - First (simplified) implementation of the Lau+ (2024) Hamstars thermally limited accretion prescription
16691669
// - Corrected errors in combining OB and WR winds in CH::CalculateMassLossRateBelczynski2010(), CalculateMassLossRateMerritt2025() and CH::CalculateMassLossFractionOB() [previously CalculateMassLossRateWeightOB()]
1670+
// 03.26.01 AB - October 24, 2025 - Option name change:
1671+
// - Main sequence core mass prescription ZERO renamed to HURLEY; deprecated ZERO
16701672
//
16711673
// Version string format is MM.mm.rr, where
16721674
//
@@ -1677,7 +1679,7 @@
16771679
// if MM is incremented, set mm and rr to 00, even if defect repairs and minor enhancements were also made
16781680
// if mm is incremented, set rr to 00, even if defect repairs were also made
16791681

1680-
const std::string VERSION_STRING = "03.26.00";
1682+
const std::string VERSION_STRING = "03.26.01";
16811683

16821684

16831685
# endif // __changelog_h__

src/typedefs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,9 +388,9 @@ const COMPASUnorderedMap<CHE_MODE, std::string> CHE_MODE_LABEL = {
388388
};
389389

390390
// main sequence core mass prescription
391-
enum class CORE_MASS_PRESCRIPTION: int { ZERO, MANDEL, BRCEK };
391+
enum class CORE_MASS_PRESCRIPTION: int { HURLEY, MANDEL, BRCEK };
392392
const COMPASUnorderedMap<CORE_MASS_PRESCRIPTION, std::string> CORE_MASS_PRESCRIPTION_LABEL = {
393-
{ CORE_MASS_PRESCRIPTION::ZERO, "ZERO" },
393+
{ CORE_MASS_PRESCRIPTION::HURLEY, "HURLEY" },
394394
{ CORE_MASS_PRESCRIPTION::MANDEL, "MANDEL" },
395395
{ CORE_MASS_PRESCRIPTION::BRCEK, "BRCEK" }
396396
};

0 commit comments

Comments
 (0)