I am using Intel Fortran Compiler 14.02.2.14.
I am compiling with the following flags " -fpp -O0 -check all -traceback -g -vec-report0 -debug all -heap-arrays -ftrapuv".
I keep on getting errors of the type: "forrtl: severe (408): fort: (2): Subscript #2 of the array XXXXX has value 1 which is greater than the upper bound of 0" where the array XXXX that seems to be the culprit of the error changes as I try to fix the problem.
In addition to the problem of the traveling error, I cannot figure out what is going wrong for the following reason. It is not uncommon that, all the times I get this error, I perform some operations on the second subscript of the array a few lines before I get the error. For example:
array(1,10) = 1.d0 ! -- ok
! -- some code
array(1,1) = 0.d0 ! -- forrtl: severe (408) etc.etc.
I apologize, but it is impractical to report the full code here, because the code base is large, and the error is "traveling" from place to place.
This behavior smells like memory error, but I think I am turning on all flags that should point me to an error like that. I am looking for some suggestion on how to move from here.
I am sorry about the choppy message, but I am having an hard time figuring out what is going on.