bugGNU Scientific Library - Bugs: bug #60371, Interpolation domain error handling

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #60371: Interpolation domain error handling

Submitter:  Patrick Alken <psa>
Submitted:  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: 

Sun 11 Apr 2021 03:59:07 AM UTC, original submission:  

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.

Patrick Alken <psa>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psa (Submitted the item)
  •  

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-04-11 psa Attached File- Added bug_interp2d_domain_error_handling.c, #51241
        Attached File- Added 0001-Fix-error-handling-in-2D-interpolation-functions.patch, #51242

    Back to the top


    Powered by Savane 3.9