- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am not sure where to report a bug. Please move this to the correct forum.
Here is my test code:
program DivisionTest
implicit none
COMPLEX*16 A, B, C
A = DCMPLX(-1.811004047684485D-316,7.977508024816439D-317)
B = DCMPLX(-5.220325499023662D-315,-1.310905257053363D-314)
C=A/B
print *, C
end program DivisionTest
With the IFX (both 2024 and 2035) compiler I get C=(NaN,NaN)
With the IFORT compiler I get C= (-5.041342791822924E-004,-1.401566961551338E-002).
This example is derived from a modeling code we have been using for 15+ years. With the move to IFX we noticed occasional bad values (NaN) in the output. For now, we will need to stick to IFORT.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear spainchaud,
Perhaps, try using:
and with a light modified version
program divisiontest
implicit none
complex (16) :: a, b, c
!
a = cmplx (-1.811004047684485d-316, 7.977508024816439d-317,kind=16)
b = cmplx (-5.220325499023662d-315,-1.310905257053363d-314,kind=16)
c = a/b
print *, c
!
end program divisiontestIt result:
May be?
Jorge D'Elia.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear spainchaud,
Perhaps, try using:
and with a light modified version
program divisiontest
implicit none
complex (16) :: a, b, c
!
a = cmplx (-1.811004047684485d-316, 7.977508024816439d-317,kind=16)
b = cmplx (-5.220325499023662d-315,-1.310905257053363d-314,kind=16)
c = a/b
print *, c
!
end program divisiontestIt result:
May be?
Jorge D'Elia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
All I had to change was COMPLEX*16 to COMPLEX(16) and I got the correct answer. No other changes or flags were needed. That should be much easier to fix in my code. Thanks.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page