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

Array confusion

jeraldlavassar
Beginner
981 Views
I am totally confused by a construct in code I am trying to compile.

The code is as follows:

DO 10 I=1,N
DO 10 J=1,3
10 IDJ(H(I,J))=L(I,J)

Dimensioned as follows: IDJ(N*3),H(N,3),L(N,3)

The program blows up with the message that the "array bounds exceeded". Is the foregoing code some UNIX Fortran 77 construct that didn't survive?

I would appreciate any help in resolving my current impasse.

Regards,

Jerald
0 Kudos
1 Reply
Intel_C_Intel
Employee
981 Views
The program simply informs you that it tries to access an array element that is outside the specified boundaries. Try to debug it and make sure that H(i,j) actaully gives somethign within specified bounds. Maybe something is not properly initialized.
A.
0 Kudos
Reply