-
Notifications
You must be signed in to change notification settings - Fork 97
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
Negative species should trigger a retry #1952
Comments
this really seems to be an issue with SDC for S_new after we apply the sources |
I think that the easiest way to do this is to have Thoughts? |
I prefer not to handle it exactly this way -- I would rather have it be that any update which updates the species checks at the time of the update whether it is creating an invalid state, and then reject the step at that point. Everything in clean_state() should be a backstop which resets the fluid state to something reasonable if all else fails, but we should be more rigorous about validating the output of the various updates. Also, seems like an issue that we are only aborting in the CPU build for this error. |
yes, we should abort on the GPU as well. Does abort work there? |
It's not ideal to handle it that way -- the way to do it would be to reduce over the minimum and maximum X found, and apply the check after the parallel for. |
(We would still lose the print, although we could probably rewrite it to be a GPU-safe print since either way this kernel will not be that expensive.) |
Right now we abort if any of the species are really negative in clean_state. We should instead do a retry
The text was updated successfully, but these errors were encountered: