//flex table opened by JP

Click to See Complete Forum and Search --> : Floating exception errors


Triton
04-20-2004, 01:32 AM
Im writing a program in fortran 90/95, yes i know it is an obsolete language, and right now i am having a problem with some floatin exception errors. My assignment is to compare several recursive and non-recursive sorting algorithms and the time it takes them to sort a 3 or 20 thousand random real number array....the program compiles fine, but once i select which sort algorithm to use, i get a "floating exception" error and the program crashes.... maybe my problem is i dont know exactly what a floating exception error is, and i guess knowing exactly what it is would help alot, thanks

CompGeek01
04-20-2004, 10:07 AM
I'm pretty sure it's an arithmatic error. Check your code and make sure there is no place where you attempt to, or can attempt to divide a number by 0. Thats the most common arithmatic error you can look for.

Triton
04-20-2004, 02:17 PM
Ive tried a few things, my program right now will sort an array with under 2 or 3 hundred pieces of data just fine no problem, but when i test it with a file containing 3 or 20 thousand pieces from the project specs thats when it messes up
'


[EDIT]

Ahh i got it, it involved the way the length of a series of allocatable arrays was read