- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page