|
| View previous topic :: View next topic |
| Author |
Message |
H Hemingson
Joined: 14 May 2008 Posts: 1
|
Posted: Fri Aug 22, 2008 9:45 am Post subject: Differences between starting with and without debugging |
|
|
Hi,
I'm programming in Fortran using Microsoft Visual Studio.
I'm running into problems with my iterative code in that if I start the code without debugging, it will diverge immediately, while it will converge if I start it with debugging. It will work either way if I run less nodes. Are numbers treated differently in the two start modes?
I encountered a similar problem earlier, but managed to isolate a section of code that used array math and replaced it with imbeded do loops, which seemed to fix the problem.
Thank you. |
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 5001 Location: The Portland Group Inc.
|
Posted: Fri Aug 22, 2008 2:20 pm Post subject: |
|
|
Hi H Hemingson,
Some high optimizations reduce precision that can lead to this type of behavior. For applications that need stricter precision, from your project's property page, select the "Release" configuration and then select "Yes" for the "IEEE Arithmetic" under "Fortran->Floating-Point Options". This will have the compiler use more strict operations that more closely adheres to IEEE 754 standards.
Note that in debug mode, no optimization are used.
Hope this helps,
Mat |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|