- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Value of a logic variable in Fortran changes unexpectly. It looks like its memory is overwroten by an unknown variable. How to find address of this logic variable? How to identify which variables share the same memory?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You may wish to turn on run-time checking (-C for the newer Intel compilers) along with the debug option, and see if the problem becomes more visible. Try first without optimization, then repeat with the optimization you intend to use. The default optimization (e.g. -O2), which Intel compilers use in the absence of the debug option, is reset to a lower level by the debug option, unless you specify it.
In the debugger of your choice, you should be able to set a watch breakpoint on the variable of concern, once you have fixed any basic problems.
In the debugger of your choice, you should be able to set a watch breakpoint on the variable of concern, once you have fixed any basic problems.

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