help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-gsl] error handling in gsl_root_fsolver_set()


From: jian Xu
Subject: [Help-gsl] error handling in gsl_root_fsolver_set()
Date: Thu, 6 Dec 2007 17:19:01 -0600

Hello,

I'm using gsl 1-D root finding algorithm, and I need to use
gsl_root_fsolver_set( ... ) to initilize the solver.  The problem is
whenever the root is NOT located inside the bounds, this function call
will immediately breaks the program.  And I cannot catch its error
even if I put this function in a try block:

    try
    {
        gsl_root_fsolver_set (s, &f, x_lo, x_hi);
    }
    catch(...)
    {
        throw .......;   // Root is not bracked
    }

Is there anyway to catch the error generated by gsl_root_fsolver_set()
?  Thanks a lot.

Jian




reply via email to

[Prev in Thread] Current Thread [Next in Thread]