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

gsl error not handled #24

Open
artivis opened this issue Aug 7, 2017 · 0 comments
Open

gsl error not handled #24

artivis opened this issue Aug 7, 2017 · 0 comments

Comments

@artivis
Copy link

artivis commented Aug 7, 2017

The following gsl error is not handled properly leading to the program to crash:

gsl: lu.c:262: ERROR: matrix is singular
Default GSL error handler invoked.

Unfortunately this is not catchable from outer code and must be handled directly within csm.

The solution is something along those lines:

// TURN OFF GSL ERROR ERROR HANDLER
// (GSL JUST PRINT ERROR MESSAGE AND KILL THE PROGRAM IF FLAG IN ON)
 gsl_set_error_handler_off();

int status = gsl_function (...);
if (status) { /* an error occurred */
  /* status value specifies the type of error */
  /* deal with it */
}

However as of now I'm not sure which gsl functions spits this error.

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

1 participant