| Thread Tools | Search this thread |
|---|
| remkoduursma | June 29, 2008 10:06 PM PDT Strange bug: need to duplicate lines of code. Help? | ||||
Hello, I have a problem in my code, and have no idea what to look for. The program compiles fine, but at runtime gives NaN for some calculations. I tracked these down to the source, and found 3 instances where all variables going into the calculation are fine (using the debugger), but the result is NaN anyway. I copied the bit of code where this happens to immediately below it, so now it is in there twice. And now it works fine! What kind of problem should I be looking for? All of the code has the fixed format, it has evolved from fortran77 code. There are many subroutines and functions, but no other 'fancy' stuff. It just reads text files, does lots of computations, and writes output text files. thanks for your help, Remko Compiler version: Intel(R) Fortran Compiler Integration for Microsoft Visual Studio 2005, 10.1.4156.2005 System: OS Name Microsoft Windows XP Professional Version 5.1.2600 Service Pack 2 Build 2600 System Type X86-based PC Processor x86 Family 6 Model 15 Stepping 11 GenuineIntel ~2194 Mhz Processor x86 Family 6 Model 15 Stepping 11 GenuineIntel ~2194 Mhz | |||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
| 4488 users have contributed to 24040 threads and 70114 posts to date. |
|---|
| In the past 24 hours, we have 22 new thread(s) 111 new posts(s), and 143 new user(s). In the past 3 days, the most popular thread for everyone has been IVF 11.0 and VS2008 The most posts were made to IVF 11.0 and VS2008 The post with the most views is Leigh, Have you built this fo Please welcome our newest member janet.p.simpsonnasa.gov |