Skip to content
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

Change arguments of addstar in new_advanced_particle #1097

Closed

Conversation

cournoyercloutierc
Copy link
Contributor

Set all arguments of addstar in new_advanced_particle -- including the relative mass, core mass, and envelope mass -- to ensure that simulations restarted with evolved stars use the correct evolved stellar masses. Prior to this change, restarting from stars with non-zero core masses resulted in the total mass being calculated from the mass plus the core mass. The relevant function (from add_star.C) is shown below:
addstar(node * b, real t_current, stellar_type type, real z,int id, bool verbose, stellar_type type2, real m_rel, real m_env, real m_core, real mco_core, real t_rel)

No other files are affected by this change.

Set all arguments of addstar in new_advanced_particle -- including the relative mass, core mass, and envelope mass -- to ensure that simulations restarted with evolved stars use the correct evolved stellar masses.
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.

1 participant