Ocean Modeling Discussion


Search for:
It is currently Wed Sep 18, 2019 7:26 am

Post new topic Reply to topic  [ 2 posts ] 

All times are UTC

Author Message
PostPosted: Tue Jul 20, 2004 8:41 am 
I'm a first-time ROMS 2.1 user. My computer system is a 2-cpu AMD Athlon Linux box and the compiler is absoft fortran 90. I already installed the NetCDF 3.5 library. However when I compiled with Makefile.absoft, I get the following error:

ranlib libocean.a
f90 -cpu:athlon -O3 -w -M11 -YEXT_NAMES=LCS -YEXT_SFX=_ -YCFRL=1 -O3 -I/usr/local/netcdf-3.5.0/include  -o /home/roms-2.1/oceanS libocean.a /usr/local/netcdf-3.5.0/lib/libnetcdf.a
libocean.a(mp_routines.o): In function `my_flush_':
mp_routines.o(.text+0x91): undefined reference to `flush_'

Can you tell me how to solve this error?

Reply with quote  
 Post subject:
PostPosted: Tue Jul 20, 2004 9:56 pm 
Site Admin
User avatar

Joined: Wed Feb 26, 2003 4:41 pm
Posts: 1081
Location: IMCS, Rutgers University
The routine flush is a standard Unix routine that flushes any output that has been buffered. The name of this routine may change in different Unix operating systems. ROMS/TOMS has its own flush routine, my_flush, which is declared in mp_routines.F, to allow easy change to other routines names with identical functionality.

Notice that whole pupose of the file mp_routines.F is to provide an interface for all kinds of standard Unix routines that may change their name across operating systems. For example, the function to get arguments from the comand-line is getarg in mostly all Unix systems but on the Cray is pxfgetarg. Similar construction is possible for the flush routine. Already, there is a construction for AIX systems where the routine name is flush_ instead.

You need to look the appropiate name for this routine in your operating system and provide the CPP structure in my_flush (file mp_routines.F). Notice that each computer has it own environmental name flag. Use this name in the #if CPP structure. I usually put this name in the Makefile CPPFLAGS macro. If there is not a flush routine in you system, you can leave this entry blank so nothing is done to flush the output buffer.

Good luck, :)

Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 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