25 #include <gsl/gsl_errno.h>
33 gsl_init::gsl_init():m_init(false)
35 gsl_set_error_handler(&custom_gsl_error_handler);
39 void custom_gsl_error_handler(
const char *reason,
const char *file,
int line,
int gsl_errno)
41 std::cout <<
"WARNING: GSL reported an error, details follow.\n\n";
42 std::cout <<
"Reason: " << reason <<
'\n';
43 std::cout <<
"File: " << file <<
'\n';
44 std::cout <<
"Line: " << line <<
'\n';
45 std::cout <<
"GSL error code: " << gsl_errno <<
'\n';