View previous topic :: View next topic |
Author |
Message |
kami_bek
Joined: 06 Oct 2009 Posts: 6 Location: Plymouth, UK
|
Posted: Tue Oct 06, 2009 1:22 pm Post subject: parameter declaration problem |
|
|
Hi all
I'm trying to compile a program which I need for my university final year project. However, I keep getting various errors (other users do not appear to have experienced this, but they have different compilers which I can't afford!) The current one I am unable to understand. The code says
C Set size of problem here:
C
parameter
C -- file2ic (iproblem=3)
C $ (im=41 ,jm=61 ,kb=16)
C -- seamount (iproblem=1)
$ im=65, jm=49, kb=21
And Plato says
D:\PRCE\PRCE507\POM\runPOM\pom2k(28 ) : error 699 - Invalid character '$' at start of line (In include file D:\PRCE\PRCE507\POM\runPOM\pom2k)
D:\PRCE\PRCE507\POM\runPOM\pom2k(28 ) : error 431 - Unexpected ',' in assignment (In include file D:\PRCE\PRCE507\POM\runPOM\pom2k)
Where is the problem? I thought parameter (p=x,p=x,p=x) was a valid format? And the dollar sign tells the compiler to take the declared constants as given? Please help!
Thanks in advance
Kami |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Tue Oct 06, 2009 1:41 pm Post subject: |
|
|
If you are writing Fortran with fixed format then continuation symbols must appear in column 6. Make sure that tabs are converted to spaces in your editor/IDE.
Whatever the problem, this is just not recognisable Fortran. |
|
Back to top |
|
|
kami_bek
Joined: 06 Oct 2009 Posts: 6 Location: Plymouth, UK
|
Posted: Tue Oct 06, 2009 5:43 pm Post subject: |
|
|
I just realised what you are saying. The lines came from an include file, which did not have a .f extension and so did not come up with the nice red and blue highlighting to help identify fields. Sorted that one now. Thank you! |
|
Back to top |
|
|
|