Ocean Modeling Discussion

ROMS/TOMS

Search for:
It is currently Sun Mar 26, 2017 1:07 pm




Post new topic Reply to topic  [ 3 posts ] 

All times are UTC

Author Message
PostPosted: Tue Jul 20, 2004 9:01 pm 
Offline
Site Admin
User avatar

Joined: Wed Feb 26, 2003 4:41 pm
Posts: 999
Location: IMCS, Rutgers University
Seems that some users continue having problems with the Intel compiler (ifc and/or ifort), 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:
$(BIN):   $(MYLIB)
          $(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.

Good luck, :)


Top
 Profile  
Reply with quote  
PostPosted: Thu Dec 16, 2004 1:27 am 
Offline

Joined: Mon Apr 26, 2004 3:50 pm
Posts: 4
Location: HKUST
Use the makefile.ifort to compile the model, the error 'undefined for_main' will appear. Hernan supplied one way to solve this problem, here provides another way to deal with it.
Change the FFLAGS in file Makefile.ifort to
Code:
 FFLAGS = -ip -03 -nofor_main -tpp7 -xW

try it.


Top
 Profile  
Reply with quote  
PostPosted: Mon Mar 07, 2005 8:24 am 
Offline

Joined: Mon Aug 09, 2004 1:54 am
Posts: 6
Location: New York University Abu Dhabi
hi ROMS users,

I succesfully compiled ROMS2.1 in linux cluster with ifort and MPICH libraries. :lol:

Thanks for the suggestions :)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group