bugGNU Octave - Bugs: bug #51966, psi function wrong when built with...

 
 

bug #51966: psi function wrong when built with 64-bit Fortran indexing

Submitted by:  Mike Miller <mtmiller>
Submitted on:  Fri 08 Sep 2017 09:45:15 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 08 Sep 2017 11:06:34 PM UTC, comment #1:

Ok, this is actually pretty trivial, the compiler flag to build to the right integer size was not being passed equally to all Fortran sources. Fixed on default

https://hg.savannah.gnu.org/hgweb/octave/rev/fbdefffeaa21

Mike Miller <mtmiller>
Project Administrator
Fri 08 Sep 2017 09:45:15 PM UTC, original submission:

When Octave is built with support for 64-bit indexed Fortran arrays, the psi function returns a lot of wrong results on real inputs and fails its tests.

The problem occurs in the Fortran routines DPSIFN and PSIFN (the initial value of ierr doesn't matter):

IERR = 2 indicates an overflow occurred in the routine. So even though the only thing different is the size of the INTEGER variable type, something in these routines is calculating an overflow differently than when built with 32-bit integers.

Mike Miller <mtmiller>
Project Administrator

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 08 Sep 2017 11:06:34 PM UTCmtmillerStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1