|
From: | Peter Johansson |
Subject: | Re: roundoff error prevents tolerance |
Date: | Wed, 10 Aug 2022 11:47:21 +1000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 |
Hi Patrick, On 9/8/22 23:07, Patrick Dupre wrote:
Hello, Using status = gsl_integration_qag with abs_err: 1e-07 rel_err: 1e-07, size: 200, key: 1 I get gsl: qag.c:247: ERROR: roundoff error prevents tolerance from being achieved Default GSL error handler invoked. The bizarre thing is that the code fails without returning the status.
You can change the behavior when an error is detected by providing your own error_handler via the function gsl_set_error_handler. The default GSL error handler is calling abort, which is not always ideal.
https://www.gnu.org/software/gsl/doc/html/err.html#error-handlers Cheers, Peter
[Prev in Thread] | Current Thread | [Next in Thread] |