- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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
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
링크가 복사됨
1 응답
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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.
A.