Seems that some users continue having problems with the Intel compiler (ifc
), Red Hat Linux, and ROMS/TOMS 2.1 Makefile. I have never been able to reproduce the reported problem which is more acute with our users in Asia. This is not a ROMS/TOMS problem but a problem with the compiler when libraries are used. Recall that in version 2.1, the Makefile rules were changed from objects to a library structure to allow full coupling between ocean and atmospheric models. Currently, we can couple ROMS and WRF via the master program: master.F
. We also use this master program to run the ocean model only.
The undefined reference to MAIN__
has been resolved in newer versions of the Intel compiler. You perhaps need to update your Intel compiler. Alternatively, you can fix your compilation problem by adding an object file (say, master.o
) to the compilation rule in the Makefile. That is,
Code: Select all
$(LDR) $(FFLAGS) $(LDFLAGS) -o $(BIN) master.o $(MYLIB) $(LIBS)
This should fix the problem. There is a redundancy here in the specification of the object master.o
explicitly and by the ROMS library MYLIB
, but it really does not matter. Many thanks to Rob Hetland for suggesting this simple and temporary fix.