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

Consider adding graceful death flag for linear solvers #628

Open
pelesh opened this issue May 17, 2023 · 0 comments
Open

Consider adding graceful death flag for linear solvers #628

pelesh opened this issue May 17, 2023 · 0 comments
Assignees

Comments

@pelesh
Copy link
Collaborator

pelesh commented May 17, 2023

In a few unlikely situations, a linear solver may encounter an irrecoverable error (e.g. a symbolic factorization fails). It would be good to have a mechanism in HiOp to exit gracefully with appropriate error message in those situations. For example, if matrixChanged() function returns -1, HiOp will try to regularize matrix. Perhaps consider introducing error codes for linear solver interface functions that would mark an irrecoverable error?

Having mechanism like this would help debug code, because the execution will terminate right after encountering the error and appropriate error message would be provided.

@cnpetra @kswirydo

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

No branches or pull requests

2 participants