- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've been working with some older code (mostly F77)and IVF 11.1.065, and I noticed that some of the data outputwas zero when it shouldn't be. I recompiled as a Debug version and discovered that theproblem disappeared. Using output to the screen, I traced the problem in the Release version to a simple assignment statement that doesn't seem to stick--if b is non-zero, the assignment a=b leaves aas zero. In my case, both variables aredouble precision arrays stored in common blocks, and I'm trying to store a single element from b in a.
I further discovered that if I write out the contents of a and bbefore making the assignment, the problem goes away.Thinking that something might be going on in optimization, I tried disabling the optimization (from /O2) and indeed the problem goes away; however, the penalty in runtime was pretty stiff. I popped the optimzation up to /O1 and the problem returned.
I'm compiling with the /Qsave option, but I tried explicitly saving the relevantcommon blocks with no success. I also tried updating to build70 after seeing a note aboutskipped assignment statements, but again no luck.
Any ideas about what mightbe going wrong? Thanks!
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
Randal
- 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