Many years before I had written programs in FORTRAN IV or 66 version. These programs were performing perfectly and have used for various projects in the past.
Presently, I am not in the position to compile this program in FTN95.
The compilation errors are mainly of following nature
The errors are typical “Syntax Errors” and mainly due to the “Syntax” as per earlier versions
I have observed errors are mainly as follows
-
“Input / Output” file connection -
Continuation statement having “1” in column no 6 -
Logic with “GO TO Statement” , that is the number in row “1 to 5”
I am reading lot of books as well as literature to debug these errors, however not in the position to find an easy solution.
I am submitting 14 error messages for review.
“Microsoft Windows [Version 10.0.18363.836]
(c) 2019 Microsoft Corporation. All rights reserved.
C:\Program Files (x86)\Silverfrost\Tutorial>FTN95 Rut.f95.for /CHECKMATE
[FTN95/Win32 Ver. 8.50.0 Copyright (c) Silverfrost Ltd 1993-2019]
- 00100 DIMENSION A(200),B(200),C(200),D(200),X(200),Y(200),BEND(200),
WARNING - Line has been truncated (line is longer than 72 characters)
*** Unpaired right bracket(s)
- 00200 *R(200),XP(200),YP(200),TS(200),TD(200),VEV(200)
*** Invalid character '*' at start of line
*** Statement not recognised
- 00400 DIMENSION CIM(2),FIM(2), AI(2),BI(2),CI(2),DI(2),EI(2),FI(2)
*** Unpaired right bracket(s)
- 01220 OPEN (UNIT=6,FILE='RUT.OUT',ACCESS='SEQOUT',
*** Unpaired right bracket(s)
- 01240 1DEVICE='DSK' )
*** Unpaired right bracket(s)
- 01260 OPEN (UNIT=5,FILE='RUT.INP',ACCESS='SEQIN',
*** Unpaired right bracket(s)
- 01280 1 DEVICE='DSK' )
*** Unpaired right bracket(s)
- 01600 150 CONTINUE
*** Invalid character '1' at start of line
- 01800 6666 DO 100 I=1,200
*** Invalid character '6' at start of line
- 02900 100 Y(I)=0.
*** Invalid character '1' at start of line
- 03300 5 CONTINUE
*** Invalid character '5' at start of line
- 04020 578 FORMAT ('1',///,24X,'',/,22X,'',1X,'',/,20X,'',3X,'*',/,18X,
*** Unpaired right bracket(s)
*** Too many errors
14 ERRORS [Rut.f95.FOR] - Compilation failed.”
Can any one help me to resolve these errors?
Regards
Uday