Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Floating Point Exception

Status
Not open for further replies.

Edujule

Technical User
Jun 3, 2005
2
MX
I'm running a program that was sent to me, it is a recursive algorithm that receives a data series and throws a mathematical model por the series...I compiled it, created the .exe and received also the data series that is supossed to work. It runs for several minutes and then a window opens saying:

UNKNOWN FLOATING POINT EXCEPTION ADDRESS 81a1

What is that?
Is it a problem with the data series or a problem of variables declaration??


I'd appreciate if somebody answers...
Edujule
 
Since it is recursive, I assume you're running either F90 or F95. Which OS are running on?

One guess is that it is using unassigned variables.

Another guess is that an array has gone out of bounds and blown the stack or overwritten some other local variables.
 
Hello XWB,

thank you for answering so fast....well it was compiled on F77, that's how the creator told me to do it.
It is running on Windows XP Professional.

It is indeed using unassigned variables...and if an array has grown so much so that it has overwritten other variables how could I solve this? the data series is around 40000 data and I tried to test it with a much shorter array and it always throws this other exception:

RUN TIME ERROR
****Error 57, Attempt to read past end-of-file


Edujule
 
Mmm recursion on F77: must be a simulated stack.

You could try increasing the array size, maybe even doubling it. After all 40000 isn't that big for the machines nowadays.

If your compiler won't build an array that size, try changing to a different compiler like the GNU G95.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top