Skip to content

Commit e619f72

Browse files
author
Ilya Mandel
committed
Adding properties to SSE Switch log
1 parent 3dcedeb commit e619f72

File tree

3 files changed

+62
-56
lines changed

3 files changed

+62
-56
lines changed
Lines changed: 57 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,57 @@
1-
SSE switchlog
2-
=============
3-
4-
Default record definition for the SSE SwitchLog log file::
5-
6-
const ANY_PROPERTY_VECTOR SSE_SWITCH_LOG_REC = {
7-
STAR_PROPERTY::RANDOM_SEED,
8-
STAR_PROPERTY::TIME
9-
};
10-
11-
12-
The default record specification can be modified at runtime via a logfile record specifications file (program option ``--logfile-definitions``).
13-
See :doc:`standard-logfiles-record-specification` for details.
14-
15-
Note that the SSE SwitchLog file has the following columns automatically appended to each record:
16-
17-
- The stellar type from which the star is switching.
18-
- The stellar type to which the star is switching.
19-
20-
|br|
21-
**SWITCHING_FROM**
22-
23-
.. list-table::
24-
:widths: 20 80
25-
:header-rows: 0
26-
:class: aligned-text
27-
28-
* - Data type:
29-
- INT
30-
* - COMPAS variable:
31-
- `derived from` ``BaseStar::m_StellarType``
32-
* - Description:
33-
- The stellar type of the star immediately prior to the switch.
34-
* - Header String:
35-
- "SWITCHING_FROM"
36-
37-
**SWITCHING_TO**
38-
39-
.. list-table::
40-
:widths: 20 80
41-
:header-rows: 0
42-
:class: aligned-text
43-
44-
* - Data type:
45-
- INT
46-
* - COMPAS variable:
47-
- Not applicable
48-
* - Description:
49-
- The stellar type to which the star will switch (i.e. the stellar type immediately following the switch).
50-
* - Header String:
51-
- "SWITCHING_TO"
52-
53-
These columns will always be automatically appended to each SSE Switch Log record: they cannot be removed via the log file record
54-
specifications file.
1+
SSE switchlog
2+
=============
3+
4+
Default record definition for the SSE SwitchLog log file::
5+
6+
const ANY_PROPERTY_VECTOR SSE_SWITCH_LOG_REC = {
7+
STAR_PROPERTY::RANDOM_SEED,
8+
STAR_PROPERTY::TIME,
9+
STAR_PROPERTY::MASS,
10+
STAR_PROPERTY::STELLAR_TYPE,
11+
STAR_PROPERTY::RADIUS
12+
};
13+
14+
15+
The default record specification can be modified at runtime via a logfile record specifications file (program option ``--logfile-definitions``).
16+
See :doc:`standard-logfiles-record-specification` for details.
17+
18+
Note that the SSE SwitchLog file has the following columns automatically appended to each record:
19+
20+
- The stellar type from which the star is switching.
21+
- The stellar type to which the star is switching.
22+
23+
|br|
24+
**SWITCHING_FROM**
25+
26+
.. list-table::
27+
:widths: 20 80
28+
:header-rows: 0
29+
:class: aligned-text
30+
31+
* - Data type:
32+
- INT
33+
* - COMPAS variable:
34+
- `derived from` ``BaseStar::m_StellarType``
35+
* - Description:
36+
- The stellar type of the star immediately prior to the switch.
37+
* - Header String:
38+
- "SWITCHING_FROM"
39+
40+
**SWITCHING_TO**
41+
42+
.. list-table::
43+
:widths: 20 80
44+
:header-rows: 0
45+
:class: aligned-text
46+
47+
* - Data type:
48+
- INT
49+
* - COMPAS variable:
50+
- Not applicable
51+
* - Description:
52+
- The stellar type to which the star will switch (i.e. the stellar type immediately following the switch).
53+
* - Header String:
54+
- "SWITCHING_TO"
55+
56+
These columns will always be automatically appended to each SSE Switch Log record: they cannot be removed via the log file record
57+
specifications file.

src/LogTypedefs.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2274,7 +2274,10 @@ const ANY_PROPERTY_VECTOR SSE_SUPERNOVAE_REC = {
22742274
//
22752275
const ANY_PROPERTY_VECTOR SSE_SWITCH_LOG_REC = {
22762276
STAR_PROPERTY::RANDOM_SEED,
2277-
STAR_PROPERTY::TIME
2277+
STAR_PROPERTY::TIME,
2278+
STAR_PROPERTY::MASS,
2279+
STAR_PROPERTY::STELLAR_TYPE,
2280+
STAR_PROPERTY::RADIUS
22782281
};
22792282

22802283

src/changelog.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,7 @@
15411541
// - Updated coefficients from Shikauchi et al. (2024) for main-sequence core mass calculations
15421542
// - Fixed behaviour of surface helium abundance for HeMS stars and core helium abundance for HeHG stars
15431543
// 03.18.02 IM - May 1, 2025 - Enhancement:
1544-
// - Added several outputs to the Switch log necessary for inter-run post-processing comparisons
1544+
// - Added several outputs to the BSE and SSE Switch logs necessary for inter-run post-processing comparisons
15451545
// - Changed the default behaviour to use enhanced Nanjing lambdas (for common envelope calculations), interpolating in mass and metallicity
15461546

15471547
const std::string VERSION_STRING = "03.18.02";

0 commit comments

Comments
 (0)