Hello, I would be very happy if you can held me!
I don't understand what exactly IN is and does:
The code says:
NP = 3
NS = 11
So SPALT should be a 2 dimensional array with 33 elements.
IN is also declared as an 1 dimensional array with 3 elements I think.
The problem is:
SSUM = SSUM+1./SPALT(IN,I)
It seems to me that there is an array in an array at SPALT and IN. But what dimension is SSUM then?
I bought books form an antiquary and spent hours, but I am not shure what happens at this point.
(The programs has 4900 lines, but I think I got the important lines to know what IN is.)
I don't understand what exactly IN is and does:
The code says:
Code:
INTEGER IN(NP)
Code:
DO 111 I=1,N
IN(I)=I
111 CONTINUE
Code:
SUBROUTINE GASKR (PO,PU,PH,CUM,CHR,CSR,FGASR,SPALT,IN, !
- LHYD,FUEL,IBZ,LKO) !
C !
IMPLICIT REAL (M) !
IMPLICIT LOGICAL (L) !
C !
INCLUDE 'PARSTX.INC' !
INCLUDE 'PARPTX.INC' !
C !
DIMENSION SPALT(NP,NS) !
C !
SSUM = 0. !
NA = NS-1 !
C !
DIF = PO-PU !
C !
DO 1 I=1,NS !
SSUM = SSUM+1./SPALT(IN,I) !
1 CONTINUE !
C !
PI = PU+DIF/SPALT(IN,1)/SSUM !
PSUM = PI !
C !
DO 2 I=2,NA !
PI = PI+DIF/SPALT(IN,I)/SSUM !
PSUM = PSUM+PI !
2 CONTINUE
NP = 3
NS = 11
So SPALT should be a 2 dimensional array with 33 elements.
IN is also declared as an 1 dimensional array with 3 elements I think.
The problem is:
SSUM = SSUM+1./SPALT(IN,I)
It seems to me that there is an array in an array at SPALT and IN. But what dimension is SSUM then?
I bought books form an antiquary and spent hours, but I am not shure what happens at this point.
(The programs has 4900 lines, but I think I got the important lines to know what IN is.)