- #1
stefan_ss
- 18
- 0
I have a program written in Fortran IV and tryed to run it with fortran77(g77). Nevertheless
it could be not problem in fortran IV it make some errors in fortran77. I am not programmer but trying to learn some. Here is the errors that compiler fortran77 is wrote:
found.f: In program `MAIN__':
found.f:120:
DO 50 I=1,3
1
found.f:130: (continued):
DO 110 I=1,3
2
Attempt to modify variable `i' at (2) while it serves as DO-loop iterator at (1)
found.f:120:
DO 50 I=1,3
1
found.f:141: (continued):
DO 270 I=1,3
2
Attempt to modify variable `i' at (2) while it serves as DO-loop iterator at (1)
found.f:120:
DO 50 I=1,3
1
found.f:148: (continued):
DO 146 I=1,N
2
Attempt to modify variable `i' at (2) while it serves as DO-loop iterator at (1)
found.f:120:
DO 50 I=1,3
1
found.f:153: (continued):
DO 145 I=1,N
2
Attempt to modify variable `i' at (2) while it serves as DO-loop iterator at (1)
found.f:60: warning:
IF(KK.EQ.500) GOTO 150
1
found.f:165: (continued):
150 CONTINUE
2
Reference to label at (1) is outside block containing definition at (2)
found.f:121:
DO 50 J=1,3
1
found.f:181: (continued):
END
2
Statement at (2) invalid in context established by statement at (1)
found.f:121:
DO 50 J=1,3
1
found.f:186: (continued):
SUBROUTINE GEOM(N,Y1,Z1,Y0,Z0,G,G1)
2
Statement at (2) invalid in context established by statement at (1)
found.f:121:
DO 50 J=1,3
1
found.f:187: (continued):
DIMENSION Y(1),Z(1),Y1(2),Z1(2)
2
Statement at (2) invalid in context established by statement at (1)
found.f:121:
DO 50 J=1,3
1
found.f:188: (continued):
DIMENSION G(3,3),G1(3,3)
2
Statement at (2) invalid in context established by statement at (1)
found.f:121:
DO 50 J=1,3
1
found.f:189: (continued):
REAL IY,IZ,IYZ,IZY
2
Statement at (2) invalid in context established by statement at (1)
found.f:121:
DO 50 J=1,3
1
found.f:190: (continued):
REAL IY1,IZ1,IYZ1,IZY1
2
Statement at (2) invalid in context established by statement at (1)
found.f:191:
F=0.0
^
Expression at (^) has incorrect data type or rank for its context
found.f:121:
DO 50 J=1,3
^
End of source file before end of block started at (^)
Can somebody help me with that?
The program is attached here.
it could be not problem in fortran IV it make some errors in fortran77. I am not programmer but trying to learn some. Here is the errors that compiler fortran77 is wrote:
found.f: In program `MAIN__':
found.f:120:
DO 50 I=1,3
1
found.f:130: (continued):
DO 110 I=1,3
2
Attempt to modify variable `i' at (2) while it serves as DO-loop iterator at (1)
found.f:120:
DO 50 I=1,3
1
found.f:141: (continued):
DO 270 I=1,3
2
Attempt to modify variable `i' at (2) while it serves as DO-loop iterator at (1)
found.f:120:
DO 50 I=1,3
1
found.f:148: (continued):
DO 146 I=1,N
2
Attempt to modify variable `i' at (2) while it serves as DO-loop iterator at (1)
found.f:120:
DO 50 I=1,3
1
found.f:153: (continued):
DO 145 I=1,N
2
Attempt to modify variable `i' at (2) while it serves as DO-loop iterator at (1)
found.f:60: warning:
IF(KK.EQ.500) GOTO 150
1
found.f:165: (continued):
150 CONTINUE
2
Reference to label at (1) is outside block containing definition at (2)
found.f:121:
DO 50 J=1,3
1
found.f:181: (continued):
END
2
Statement at (2) invalid in context established by statement at (1)
found.f:121:
DO 50 J=1,3
1
found.f:186: (continued):
SUBROUTINE GEOM(N,Y1,Z1,Y0,Z0,G,G1)
2
Statement at (2) invalid in context established by statement at (1)
found.f:121:
DO 50 J=1,3
1
found.f:187: (continued):
DIMENSION Y(1),Z(1),Y1(2),Z1(2)
2
Statement at (2) invalid in context established by statement at (1)
found.f:121:
DO 50 J=1,3
1
found.f:188: (continued):
DIMENSION G(3,3),G1(3,3)
2
Statement at (2) invalid in context established by statement at (1)
found.f:121:
DO 50 J=1,3
1
found.f:189: (continued):
REAL IY,IZ,IYZ,IZY
2
Statement at (2) invalid in context established by statement at (1)
found.f:121:
DO 50 J=1,3
1
found.f:190: (continued):
REAL IY1,IZ1,IYZ1,IZY1
2
Statement at (2) invalid in context established by statement at (1)
found.f:191:
F=0.0
^
Expression at (^) has incorrect data type or rank for its context
found.f:121:
DO 50 J=1,3
^
End of source file before end of block started at (^)
Can somebody help me with that?
The program is attached here.