-
Notifications
You must be signed in to change notification settings - Fork 75
Fix for issue #400 #1406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for issue #400 #1406
Conversation
There was a problem hiding this 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.
|
That's a good point, @jeffriley! I've just pushed the changes, and it should be fixed :-) |
ilyamandel
left a comment
There was a problem hiding this 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).
|
No worries, @ilyamandel! :-) It should be ready now. |
I am using the "dismiss review" feature only because Jeff's request was fully addressed and he is travelling at the moment.
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).