Skip to content

Conversation

@brcekadam
Copy link
Collaborator

Fix for issue #400. I removed the ambiguous ZSOL value, and now we will have ZSOL_HURLEY = 0.02, ZSOL_ANDERS = 0.019, ZSOL_ASPLUND = 0.0142. I checked the prescriptions and made sure that correct Zsol value is used (hopefully I didn't miss any).

@brcekadam brcekadam linked an issue Jun 25, 2025 that may be closed by this pull request
Copy link
Collaborator

@jeffriley jeffriley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @brcekadam. Just one request:

Can you provide functions for ZSOL_ANDERS and ZSOL_ASPLUND that mirror LogMetallicityXi() for ZSOL_HURLEY, and use those? Otherwise we might be taking the log of the same number many thousands of times over the course of the evolution of each system - when we really only need to do it once (log is an expensive function).

You can change the name of the function if you want - it's LogMetallicityXi() because Hurley used 'xi' in his paper (from memory). Or maybe just use LogMetallicityXi_HURLEY() etc. Whatever works.

@brcekadam
Copy link
Collaborator Author

That's a good point, @jeffriley! I've just pushed the changes, and it should be fixed :-)

Copy link
Collaborator

@ilyamandel ilyamandel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, @brcekadam !

Apologies for merging in another PR just before yours (you'll have to merge in dev and increment the version number in order to avoid a changelog conflict).

@brcekadam
Copy link
Collaborator Author

No worries, @ilyamandel! :-) It should be ready now.

@ilyamandel ilyamandel dismissed jeffriley’s stale review June 26, 2025 08:46

I am using the "dismiss review" feature only because Jeff's request was fully addressed and he is travelling at the moment.

@ilyamandel ilyamandel merged commit 30ff94c into TeamCOMPAS:dev Jun 26, 2025
2 checks passed
@brcekadam brcekadam deleted the fix_zsol_reference branch June 26, 2025 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clarify reference metallicity for SSE models and winds

3 participants