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.
C_OPTS= -c -O
FORT_OPTS= -c -O
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.
.SUFFIXES: .c .o .f90
#.SUFFIXES: .c .f .o .f90
#FLGS = -O3 -fixed -convert big_endian
#FLGS = -Mnofree -O2 -tp p6 -pc 32 -Mnoframe -Mbounds -byteswapio -Wl,-Bstatic
FLGS = -Mfixed -O2 -Mnoframe -byteswapio
LIBS = lib/librams.a
TARGT = calrams.linux
#TARGT = calrams.exe
OBJCTS = \
pgf90 -o $(TARGT) $(FLGS) $(OBJCTS) $(LIBS)
pgf90 -c -o $@ $(FLGS) $<
calrams.o : calrams.f90 param.inc fields.inc
readrams.o : readrams.f90 param.inc fields.inc
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
Hope this helps,