- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When I try to compile code with two loops it behavior depend on target platform, i.e. release version for x64 lead to wrong answer or even NaN. For Win32 all is ok. Eventually uncommenting line with write operator lead to correct answer.
(Please find attached file with UnA function - I try to put code directly to this post but it is shown incorrectly :( )
...
!----------------------------------------------
res1 = UnA(0.1d0,0.0d0)
! answer should be 0.787914997424541
print *,res1
...
(Please find attached file with UnA function - I try to put code directly to this post but it is shown incorrectly :( )
...
!----------------------------------------------
res1 = UnA(0.1d0,0.0d0)
! answer should be 0.787914997424541
print *,res1
...
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you attach a test program that uses this function and demonstrates the problem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
$ ifort -Qdiag-enable:sv3 UnA.f90
Intel Visual Fortran Compiler for applications running on IA-32, Version 10.1
Build 20071116 Package ID: w_fc_p_10.1.013
Copyright (C) 1985-2007 Intel Corporation. All rights reserved.
c:src etUnA.f90(15): error #12143: [SV] "SM" is uninitialized
Intel Visual Fortran Compiler for applications running on IA-32, Version 10.1
Build 20071116 Package ID: w_fc_p_10.1.013
Copyright (C) 1985-2007 Intel Corporation. All rights reserved.
c:src etUnA.f90(15): error #12143: [SV] "SM" is uninitialized
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can reproduce the problem. Please submit a report to Intel Premier Support and attach your test case.

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