- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
tempA= SQRT (VK (IJ, Q) **2 + UK (IJ, Q) **2)
tempA= SQRT (VK (IJ, Q) **2 + UK (IJ, Q) **2)
TAU0= tempA / SLEN (IJ) * MAX (SMALL, VISLAM)
result : tempA = 0D0 TAU0 = 0D0
but when
tempA= SQRT (VK (IJ, Q) **2 + UK (IJ, Q) **2)
TAU0= tempA / SLEN (IJ) * MAX (SMALL, VISLAM)
result : tempA = NaN TAU0 = NaN
WHY?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
tempB = 0.0D+0
tempA = SQRT(tempB)
result : tempA = NaN
but when
tempB = 0.0D+0
tempA = SQRT(tempB)
tempA = SQRT(tempB)
result : tempA = 0.0D+0
compiler: ifort
source file : f90
Why?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your question is too ambiguous and lacking in detail to elicit a useful answer.
You have to present a complete short program with declarations for the variables and output statements for the variables whose values you wish to display.
Finally, you should state which compiler version was used, which operating system the compiler ran under, and which compiler options were used.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page