forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

parameter declaration problem

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
kami_bek



Joined: 06 Oct 2009
Posts: 6
Location: Plymouth, UK

PostPosted: Tue Oct 06, 2009 1:22 pm    Post subject: parameter declaration problem Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7926
Location: Salford, UK

PostPosted: Tue Oct 06, 2009 1:41 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
kami_bek



Joined: 06 Oct 2009
Posts: 6
Location: Plymouth, UK

PostPosted: Tue Oct 06, 2009 5:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group