Hi Mat,
i’m still here trying to compile this other program CALRAMS from www.src.com.
Now the problems is always the same but now i’ll give you more details.
On the first attemp to compile it i get:
pgf90 -O0 -o calrams.out calrams.f90
PGF90-S-0034-Syntax error at or near - (calrams.f90: 3)
PGF90-S-0034-Syntax error at or near - (calrams.f90: 4)
PGF90-S-0034-Syntax error at or near identifier verion (calrams.f90: 5)
PGF90-S-0034-Syntax error at or near - (calrams.f90: 6)
PGF90-S-0034-Syntax error at or near identifier developed (calrams.f90: 7)
PGF90-S-0034-Syntax error at or near identifier zhong (calrams.f90: 8)
PGF90-S-0034-Syntax error at or near end of line (calrams.f90: 9)
PGF90-S-0034-Syntax error at or near identifier create (calrams.f90: 10)
PGF90-S-0034-Syntax error at or near identifier last (calrams.f90: 11)
PGF90-S-0034-Syntax error at or near identifier changes (calrams.f90: 13)
PGF90-S-0034-Syntax error at or near real constant 1.0000000E+0 (calrams.f90: 14)
PGF90-S-0034-Syntax error at or near identifier in (calrams.f90: 15)
PGF90-S-0034-Syntax error at or near identifier change (calrams.f90: 16)
PGF90-S-0034-Syntax error at or near real constant 2.0000000E+0 (calrams.f90: 17)
PGF90-S-0034-Syntax error at or near identifier subroutine (calrams.f90: 19)
PGF90-S-0034-Syntax error at or near identifier rams (calrams.f90: 20)
PGF90-S-0034-Syntax error at or near identifier iw (calrams.f90: 21)
PGF90-S-0034-Syntax error at or near identifier header (./ramshd.inc: 1)
PGF90-S-0034-Syntax error at or near end of line (./ramshd.inc: 2)
PGF90-W-0016-Identifier, ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc, truncated to 31 chars (./ramshd.inc: 3)
PGF90-S-0034-Syntax error at or near end of line (./ramshd.inc: 3)
PGF90-S-0034-Syntax error at or near identifier copyright (./ramshd.inc: 4)
PGF90-S-0034-Syntax error at or near end of line (./ramshd.inc: 5)
PGF90-S-0034-Syntax error at or near identifier this (./ramshd.inc: 6)
PGF90-S-0034-Syntax error at or near identifier modify (./ramshd.inc: 7)
PGF90-S-0034-Syntax error at or near identifier as (./ramshd.inc: 8)
PGF90-F-0008-Error limit exceeded (./ramshd.inc: 8)
All these lines are commented lines.
If i try to calcel them then i get the corrupt model error.
PGF90-F-0004-Corrupt or Old Module file ./an_header.mod (./param.inc: 1)
PGF90/any Linux/x86 4.1-2: compilation aborted
I can’t understand why these errors for commented lines.
Thank you for all your help.
With regards.
The first error is because the calmet.f90 code is in fixed format and needs the “-Mfixed” flag. The second error is because the author has left an old mod file, as well as old objects, libraries, and executables, in this directory. So the first step is to clean up after the author and remove all the .o, .mod, .a, .exe, and .linux files from the top level directory as well as the “lib” directory. Next cd into the lib directory and update the “Make.lib” file so it uses pgf90/pgcc and is configured for linux.
Next type “make -f Make.lib” to build librams.a and then run “ranlib librams.a”. Change back to the top level directory and update the “Make_calrams” file to use pgf90.
Finally, run “make -f Make_calrams”. I’ll leave it to you to figure out how to run the program since it complained to me about a missing input file.
% calrams.linux calrams.inp
PGFIO-F-209/OPEN/unit=10/'OLD' specified for file which does not exist.
File name = /usr1/RAMS/Data/iw-A-2001-04-14-040000-head.txt
In source file calrams.f90, at line number 119