-
Notifications
You must be signed in to change notification settings - Fork 98
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
some normalization efforts for true SDC #1583
Conversation
here are the tests: http://groot.astro.sunysb.edu/Castro/test-suite/gfortran/2021-03-07-003/index.html I think they look good. In particular, this fixes some crashes with the detonation that arose when we added the abort for the mass fraction non-conservation. I think that this is much more robust now. |
If I understand this correctly, it's basically doing what the code was doing before we merged #1379, except it's being handled closer to where the negative mass fraction is being generated instead of letting the generic clean_state do it for you. The concern I have is that the point of #1379 is that if you got to the point where we would be aborting for negative X, it's an indication that your algorithm actually did something really bad, and papering it over with a floor/normalization is not the right thing to do. If VODE is generating a negative X (for example), the point of #1379 is that we should be fixing VODE not to do that, instead of just shifting where the hiding of the negative X gets inserted. |
I mostly agree. In the Strang stuff, we do a normalization at the end of the solve as well, so this is consistent with that. But I think that what we also need is a TRUE_SDC code path in VODE that does the |
Yes, I would be OK with this if we also did the proposed VODE fix. |
I think that most of these are now in #2586 |
PR summary
PR motivation
PR checklist
CHANGES
file has been updated, if appropriate