-
Notifications
You must be signed in to change notification settings - Fork 102
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
Setting metallicity in MESA r2208 seems to hang #1088
Comments
Weird. I can reproduce this, and it only hangs for |
With a bit of experimenting and looking at the source code, it seems that setting the metallicity causes a lookup of an initial model state (not sure which bits exactly) from a table. The MESA we ship comes with one such table, If the table isn't found, then the values will be computed, as hinted at in the docstring for the
For a metallicity of 4%, this calculation fails to converge:
If I try One conclusion that we can already draw is that error handling in AMUSE is poor. There's no indication on the Python side that something went wrong on that |
Well, it finished, not sure how long it took because I worked on something else in the mean time. It doesn't seem to save the results in Once this is done, I can evolve a star (using the code in Listing 3.2 of the book) and that seems to work okay. The only thing I see there is that the age of the star remains 0 Myr, even after 100 1Myr timesteps. Not sure if that's supposed to happen... |
Describe the bug
From @spzwart:
Expected behavior
The metallicity to be set accordingly.
The text was updated successfully, but these errors were encountered: