- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi everyone,
in this moment many strange things are happening to me so problebli I do not get up something about fortran. See my two file in the attachment.
There is a small difference between them. In sph_std_mvA I have two do-enddo, in sph_std_mvB I add another do-endo to compute the final results outside the main do-enddo.
I think that are the same thing. Howevere the program gives me not exact results in the second case. I got for exmple NaN in the second case when I print some of them.
I am very confused. I hope I haven't done some stupid erros bu I do n ot think so.
Please help me, I need this for work.
Thanks again
Link Copied
- 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
- 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
diedro wrote:So far you have not posted a complete set of source files that one can compile to view the reported problem. The archive "test1.zip" is incomplete. For example, none of the .F90 files in it declare the derived type LNODEInt. My suggestion is that you create a new directory, place source and data files in it, and try to build the application from scratch. Doing so will make it evident when missing modules are being used or variable types are undefined.hi,
I spend all the week-end. I really do not know what I can do. I pud also some modules and interfaces but I get the same different results.
is It a compiler problem?
- 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
diedro wrote:That optimizer bug was fixed a long time ago, and I do not think that it has any relevance to the present thread.
I have just read your post:
http://software.intel.com/en-us/forums/topic/270147do you think that could it be the same problem?
As I told you just movingThere are places in KERNEL.F90 where you add 1.0E-16 to a REAL*4 variable such as qij and compare the result to qij. This will fail to do what you expect in many cases. If qij is larger than, for example, 2e-7 in absolute value, in REAL*4 arithmetic qij + 1e-16 is no different from qij. With npt of the order of 1000 or more, an expected relative error of 1e-7 in single-precision, the expected error in the sum of array elements over the range 1:npt is about 1e-4. That is, no more than three significant digits should be expected to agree when the same sum is computed in two different ways, as in sph_std_mv.f90. In summary, the discrepancies are attributable to insufficient precision in the calculations. Careful study is needed to decide whether REAL*4 is adequate for your computations.!VF(1,ip) = VF(1,ip) + dt*dvv(1,ip)
!VF(2,ip) = VF(2,ip) + dt*dvv(2,ip)in or outside the do-end (in sph_std_mv) change all the things.
- 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
- 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page