View previous topic :: View next topic |
Author |
Message |
tegate
Joined: 18 Jun 2013 Posts: 1
|
Posted: Tue Jun 18, 2013 2:18 pm Post subject: Can't Compile |
|
|
So I'm trying to run a bunch of code that has been made public and so has been verified to work but once I get to compiling the 2nd of 3 .f95 files, I run into several errors. I am fairly certain I'm compiling correctly (modules before main, etc) and I've tried several different compilers on different operating systems, but I'm still consistently getting a series of syntax errors:
1)Error Syntax at: if (a <> ' ') then...invalid character "<" followed by ">".
2)Error Syntax: expecting END DO statement
3)Error Syntax: Unexpected ELSE statement
Thing is, this code shouldn't have syntax errors so I'm certain I'm just doing something wrong, but I'm not sure what. Do these errors suggest I'm missing something? A library maybe or something else?
If you would like to try running the code yourself, it has been graciously made available on: http://www.indiana.edu/~clcl/BEAGLE/ |
|
Back to top |
|
 |
JohnMansell
Joined: 10 May 2006 Posts: 18 Location: Darlington
|
Posted: Tue Jun 18, 2013 3:05 pm Post subject: |
|
|
1. The <> looks like a fortran vendor extension (whose?) meaning .ne. or /=. Make this change (and compile the other USEd modules) and the files compile. <> is non-standard.
2. The messages for interminated do & if block go away on changing <> to /=.
3. There is an unterminated parameter statement in cosine_between.f90. Removing the last comma allows compilation.
Finally, I'm not even going to try linking  |
|
Back to top |
|
 |
|