Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Memory overwirte

jq2000
Beginner
519 Views
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?
0 Kudos
1 Reply
TimP
Honored Contributor III
519 Views
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.
0 Kudos
Reply