Silverfrost Forums

Welcome to our forums

parameter declaration problem

6 Oct 2009 12:22 #5128

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

6 Oct 2009 12:41 #5131

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.

6 Oct 2009 4:43 #5136

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!

Please login to reply.