- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
still me...
After having solved the NaN problem at least on my machine, we wonder why the .exe does not work the same way as on other computers.
IDEs, compilers, sources and project settings are the same but the results still differs. We tried to only let my .exe run on the other PC. But again no change, still the NaN result. Finally we have taken a 3rd PC, same OS as on my PC - again NaN.
How does the program work?
-> It reads a file, calculates and generates some output files. It is all the same input file but on two PCs the Fortran .exe produces a different result than on the third PC.
What reason might there be for this behaviour?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It might be the problem of different CPUs on different machines. Certain optimizations, that compiler exploit to make program run faster on one CPU may result in erroneous outcome on the other CPU due to difference in architecture.
I would try to compile without optimizations (disable optimizations in compiler options) and see what happens.
Good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
the point is:
We use the default project settings, look at http://img232.imageshack.us/my.php?image=optimizationsettingsopas5ue.jpg
I assume that these settings mean "Optimization completely disabled". If this assumption is wrong, I think I need some advice concerning useful/required changes.
The current command line arguments show:
/nologo /Zi /Od /Qsave /Qzero /module:"$(INTDIR)/" /object:"$(INTDIR)/" /traceback /check:bounds /libs:static /dbglibs /c
Thanks in advance.
Message Edited by h-faber on 09-19-2005 12:01 AM
- 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
Uninitialized variables and arrays may take different "garbage" values in different systems. In one system this "garbage" value may help to go through the calculations withoutgetting NaN, while in some other system this "garbage" may just produce NaN. Therefore my suggestion is: Use IMPLICIT NONE, declare all variables and arrays, andinitialize all variables, especially arrays.
Sabalan.

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