fortran assigns a NaN (sometimes)
I have this piece of super old fortran code:
do 1823 i=1,n
g(i) = 0d0
1823 continue
The code works most of the time, but sometimes when n = 2, I get g(2)=-NaN
(0xfffffffffffff). n is an integer, i is an integer, g is allocatable
real(dp) with dimension of 2, in this case.
No comments:
Post a Comment