Hello, I am making the numerical simulation code by fortran. I made the common variables in an external file. All variables is called to main code and subroutines by INCLUDE "Variable.inc". But when compiled the program, I got these messages:
Error 1 error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: // / <IDENTIFIER> C:\Users\Ledinhanh07\Documents\Visual Studio 2013\Projects\Console3\Console3\subcomMCMBLPC.inc 9
Error 2 error #5082: Syntax error, found '&' when expecting one of: <LABEL> <END-OF-STATEMENT> ; TYPE INTEGER REAL COMPLEX BYTE CHARACTER CLASS DOUBLE ... C:\Users\Ledinhanh07\Documents\Visual Studio 2013\Projects\Console3\Console3\subcomMCMBLPC.inc 10
Error 3 error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: <REAL_KIND_CON> <REAL_CONSTANT> <DBLPRC_CONSTANT> <DBLPRC_KIND_CON> <QUAPRC_CONSTANT> ... C:\Users\Ledinhanh07\Documents\Visual Studio 2013\Projects\Console3\Console3\subcomMCMBLPC.inc 10
Error 4 error #5082: Syntax error, found '&' when expecting one of: <LABEL> <END-OF-STATEMENT> ; TYPE INTEGER REAL COMPLEX BYTE CHARACTER CLASS DOUBLE ... C:\Users\Ledinhanh07\Documents\Visual Studio 2013\Projects\Console3\Console3\subcomMCMBLPC.inc 11
Error 5 error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: // / <IDENTIFIER> C:\Users\Ledinhanh07\Documents\Visual Studio 2013\Projects\Console3\Console3\subcomMCMBLPC.inc 12.....
My Variable.inc is as follows*:
!C ---------------------------------------------------------------
!C File Name subcom.inc
!c
PARAMETER(NI=183,NJ=70)
PARAMETER(NPHI=7,NPHI1=5,NPHI2=6)
PARAMETER(NI1=51)
IMPLICIT REAL*8 (A-H,O-Z)
COMMON /BTVD/ AM1( NPHI,NPHI,NI,NJ)
COMMON /BPHI/ PHI( NPHI,NI,NJ),
& PHIN( NPHI,NI,NJ),
& PHIM( NPHI,NI,NJ)
COMMON /BVAR/ F( NPHI,NI,NJ),
& G( NPHI,NI,NJ),
& Q( NPHI,NI,NJ),
& EV( NPHI,NI,NJ),
& FL( NPHI,NI,NJ)
COMMON /BSUB/ROU(NI,NJ),.....
Please tell me how to fix this problem!!!
Thank you !