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

Blank common problem for DEBUG compiler

mushroom89_
Beginner
692 Views
Several of my programs subdivide blank common into real*8, real*4, and integer*4 arrays. The RELEASE compiler runs the programs fine. The DEBUG compiler compiles, but then hits an execution error when it runs because the first m subscript exceeds m(1). These are the lines after declaring common (900000). real*8 d real r integer m common d(1),r(1),m(1) Common is then subdivided into arrays where the entry points are tracked based on word length. It works, except for DEBUG. Is there a work-around for this? Is it a compiler error?
0 Kudos
1 Reply
Steven_L_Intel1
Employee
692 Views
It is not a compiler error. The Debug configuration turns on array bounds checking. Your program deliberately accesses arrays out of bounds so you will have to disable that option under "Run time".
0 Kudos
Reply