I have been given the task converting some Fortran 77 code and I am having problems understanding the way the arrays are dimensioned. I have some code like this:
To me, that says that arrays PREPTB, DENPTB, etc should contain 2000 elements (1-2000). I am not sure about the X and R arrays except that they are zero based.
When I run a debugger, I find that PREPTB, DENPTB, etc. are arrays going from 1 to 100, and X and R go from 0 to 99. Does anyone know what is going on with this? It has had me throughly confused for awhile. Thank you for your time.
Code:
IMPLICIT REAL*4(A-H,M,O-Z)
PARAMETER (NP = 2000, NL = 500, NSAMP = 1000)
PARAMETER (N1 = 400, N2 = 10)
DIMENSION PREPTB(NP),DENPTB(NP),TEMPTB(NP),SSPPTB(NP)
DIMENSION X(0:N1,0:N2), R(0:N1,0:N2)
When I run a debugger, I find that PREPTB, DENPTB, etc. are arrays going from 1 to 100, and X and R go from 0 to 99. Does anyone know what is going on with this? It has had me throughly confused for awhile. Thank you for your time.