Review error handling to avoid program termination on error
dibyendumajumdar opened this issue · 1 comments
dibyendumajumdar commented
The sparse implementation simply exits on encountering errors ... but as a library we cannot do that, so we need an alternative method. Perhaps we can supply an error handler that is called - and this can do a long jmp. We can then allow the caller to handle it. Obviously once an error has occurred then the dmr_C instance should not be used anymore.
dibyendumajumdar commented
The error handling has been improved so that we detect issues and gracefully exit rather than asserting or aborting. We also try to generate more meaningful error messages and point the offending linear instruction / line of code if possible. But still more work is needed