- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
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!
Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
just because:
kk=DATAN2(DIMAG(H(7))
but H(7)=(infinity,NaN)
kk=DATAN2(DIMAG(H(7))
but H(7)=(infinity,NaN)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank!
Yes,just as you said.
But I don't know why it can run on alphavax well.
Yes,just as you said.
But I don't know why it can run on alphavax well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank, I agree with you.
I will tell him who ask me this question and let he try.
Thank you very much.
I will tell him who ask me this question and let he try.
Thank you very much.
![](/skins/images/2E08A100FB92911314A240D1EAFB2828/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page