URL:
<https://savannah.gnu.org/bugs/?60371>
Summary: Interpolation domain error handling
Project: GNU Scientific Library
Submitted by: psa
Submitted on: Sun 11 Apr 2021 03:59:07 AM UTC
Category: Runtime error
Severity: 3 - Normal
Operating System:
Status: None
Assigned to: None
Open/Closed: Open
Release:
Discussion Lock: Any
_______________________________________________________
Details:
reported by Damien Lebrun-Grandie dalg24 =at= gmail =dot= com
With the current version of GSL (without the patch), the user do not get a
chance to check the return status of gsl_interp2d_eval_e() because GSL_ERROR()
gets called direclty instead of returning an error code as advertised in the
documentation.
With the changes I propose, the domain error will still be caught by macro
DISCARD_STATUS() that checks the return code of gsl_interp2d_eval_e() in
gsl_interp2d_eval() but the intended behavior for gsl_interp2d_eval_e() will
be achieved. The only downside I see with this patch is that the user now
gets an out-of-domain error but he is not told anymore whether the error was
caused by the x or the y coordinate.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sun 11 Apr 2021 03:59:07 AM UTC Name:
bug_interp2d_domain_error_handling.c Size: 2KiB By: psa
<http://savannah.gnu.org/bugs/download.php?file_id=51241>
-------------------------------------------------------
Date: Sun 11 Apr 2021 03:59:07 AM UTC Name:
0001-Fix-error-handling-in-2D-interpolation-functions.patch Size: 1KiB By:
psa
<http://savannah.gnu.org/bugs/download.php?file_id=51242>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60371>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/