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
NOXSolver: clear pending_exception #16028
Conversation
@@ -961,6 +961,7 @@ namespace TrilinosWrappers | |||
n_jacobian_applications = 0; | |||
n_nonlinear_iterations = 0; | |||
n_last_linear_iterations = 0; | |||
pending_exception = nullptr; |
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.
Needed to be able to reuse the solver.
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.
This doesn't quite seem right. If there is still an exception pending, we should assert. Can you create a testcase that shows how this can happen?
@bangerth I don't think the |
@bangerth Any feedback. The |
@peterrum Apologies for beging slow to get to this -- I spent the weekend from Friday afternoon to this morning in the mountains. The logic is that The logic here implicitly assumes that if NOX returns success ( So, if NOX does have the ability to recover from exceptions, then that would be useful to know -- ideally with a testcase that demonstrates that, and by adding the assertions I mention above. |
@peterrum Ping? |
@peterrum Ping again? |
@vovannikov Is working on a simplified test that triggers the problem. |
The nullification of the |
FYI @vovannikov