SETENV.BAT nor GF.BA need to be changed. I have proved the test suite compile with gForrtan fine.
I still do not have 6.3.1 so I am now attempting to get an example of our code to compile in gFortran. As far as I am aware it is FTN77 ( with FTN95 tweaks and extensions ) but am struggling to understand the gForrtan requirements. I need a reference to their spec unless you are able to answer my problems each time I hit them ?
This is our standard approach to head our routines to do with the INCLUDE of COMMON areas, comments and continuation lines :
SUBROUTINE WMQLIS(NAREA, IRET)
C ------------------------------------------
C
INCLUDE 'WINDOWS.INC'
C
INCLUDE 'MTSURV.INC'
C
......ETC
The WINDOWS.INC file has the following lines :
C
IMPLICIT REAL*8 (A-H, O-Z)
IMPLICIT INTEGER*2 (J)
C
INCLUDE 'WINDOWS.INS', NOLIST
INCLUDE 'RETURN.INC'
C
and RETURN.INC is :
C
REAL*8 R8RET
INTEGER*4 I4RET
LOGICAL LOGRET*4, LOGRT2*2
C
COMMON / RET_CODE / R8RET, I4RET, LOGRET, LOGRT2
C
and the top of MTSURV.INC has :
C
CHARACTER*252 SURVEY(4)
CHARACTER TITLE(4)*40
C
COMMON / COMSRV1 / SURVEY, NSURV1(4), NSURV2(4), TITLE,
+ NPTS(4), NFP(4), NHP(4), NSYM(10,4),
......... ETC .......
I believe I have to change the Comment C to be !
WINDOWS.INC now looks like :
!
USE mswin$
!
IMPLICIT REAL8 (A-H, O-Z)
IMPLICIT INTEGER2 (J)
!
INCLUDE 'RETURN.INC'
!
RETURN.INC looks like :
!
REAL8 R8RET
INTEGER4 I4RET
LOGICAL LOGRET4, LOGRT22
!
COMMON / RET_CODE / R8RET, I4RET, LOGRET, LOGRT2
!
Changing as per (1) in all remaining INCs gFortran issues the following errors
4(a) Error : Syntax error in data declaration, for the LOGRET*4 in the RETURN.INC file
4(b) Error : Syntax error in COMMON statement, just after the last character on the COMMON / COMSRV1 / line in MTSURV.INC
4(c) Error : Invalid charater in name, pointing at column 7 on the continuation line to 4(b)
Thanks