[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #60371] Interpolation domain error handling
From: |
Patrick Alken |
Subject: |
[bug #60371] Interpolation domain error handling |
Date: |
Sat, 10 Apr 2021 23:59:09 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0 |
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/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #60371] Interpolation domain error handling,
Patrick Alken <=