This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problems with error handling


Daniel Rohe schrieb:
> 
> ...
> 
> but all that happens if the error occurs is
> 
>  >gsl: qagp.c:504: ERROR: integral is divergent, or slowly convergent
> Abort
> 
> I guess I'm making a silly mistake once more. can anyone give me a hint?
> 
No, not really. Here is the hint: The default error handling is: (see
gsl/err/error.c)

void
gsl_error (const char * reason, const char * file, int line, int gsl_errno)
{
  if (gsl_error_handler) 
    {
      (*gsl_error_handler) (reason, file, line, gsl_errno);
      return ;
    }

  gsl_stream_printf ("ERROR", file, line, reason);
  abort ();
}

That is the reason. More can be read in gsl-Reference: Chapter Error handling


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]