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

Array confusion

jeraldlavassar
초급자
983 조회수
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 포인트
1 응답
Intel_C_Intel
직원
983 조회수
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 포인트
응답