Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28632 Discussions

run-time error M0:MATH -atan2: errors

Intel_C_Intel
Employee
822 Views
I have a fortran program which can run ALPHAVAX VM Unix well,but when I run it on window2000 with CVF6.5,it give the error message:
run-time error M0:MATH -atan2: errors
i can't find this error information by using CVF help.
what's the matter with this program?
thank!
0 Kudos
5 Replies
Intel_C_Intel
Employee
822 Views
just because:
kk=DATAN2(DIMAG(H(7))
but H(7)=(infinity,NaN)
0 Kudos
Jugoslav_Dujic
Valued Contributor II
822 Views
Well, you probably didn't want to get a NaN there, did you? NaN comes from a 0./0. or Inf/Inf. I suggest you use the debugger and inspect why actually H(7) receives that value. If you still have the old system available, you could insert control PRINTs and see where the results start to differ.

Jugoslav
0 Kudos
Intel_C_Intel
Employee
822 Views
Thank!
Yes,just as you said.
But I don't know why it can run on alphavax well.
0 Kudos
Jugoslav_Dujic
Valued Contributor II
822 Views
Now that's the right question :-). I can only offer a guess that you have a hidden bug somewhere in the code which revealed itself just now due to some inherent difference between the systems. It can be a false assumption about floating-point operations or input data, an uninitialized variable... the list is long. As I said, the only way to find out is to debug it (and comparison of intermediate results between the systems, if available, may be the best way if the code is complicated).

0 Kudos
Intel_C_Intel
Employee
822 Views
Thank, I agree with you.
I will tell him who ask me this question and let he try.
Thank you very much.
0 Kudos
Reply