Ocean Modeling Discussion

ROMS/TOMS

Search for:
It is currently Mon Oct 23, 2017 12:42 am




Post new topic Reply to topic  [ 7 posts ] 

All times are UTC

Author Message
 Post subject: WC13 compiling error
PostPosted: Mon Aug 26, 2013 5:17 am 
Offline

Joined: Fri Dec 28, 2012 5:44 am
Posts: 28
Location: National Marine Environmental Forecasting Center
hi everyone´╝Ü
My roms is $Id 645.
I try to test 4d_var with roms,so i have customized "build" script and provided exact values for ROOT directory, MY_ROOT_DIR, ..., as file(Readme) in the test/WC13/I4DVAR/ says
Then, i compiled the program, it prompts:

/export/home/wangzc/swgfs/projects/WC13/I4DVAR/Build/libUTIL.a(cgradient.o)(.text+0x1b4a): In function `cgradient_mod_mp_cgradient_tile_':
: undefined reference to `dsteqr_'
/export/home/wangzc/swgfs/projects/WC13/I4DVAR/Build/libUTIL.a(cgradient.o)(.text+0x3ffbc): In function `cgradient_mod_mp_cgradient_':
: undefined reference to `dsteqr_'
make: *** [/export/home/wangzc/swgfs/projects/WC13/I4DVAR/oceanM] Error 1[/b]


Anyone who had similar experience before can give me some suggestions?>
--zongchen


Top
 Profile  
Reply with quote  
 Post subject: Re: WC13 compiling error
PostPosted: Mon Aug 26, 2013 9:59 am 
Offline

Joined: Thu May 31, 2007 2:33 pm
Posts: 8
Location: Marine Institute of Ireland
Hi zongchen,

I too had the same problem when compiling the WC13 test cases some time ago.

Quote:
: undefined reference to `dsteqr_'
relates to ARPACK/LAPACK libraries which may need to be compiled and built (depending on your existing system set-up). These libraries then need to be correctly referenced in your associated /Compilers/*.mk file in the
Quote:
ifdef USE_ARPACK
section of that file.

If the ARPACK/LAPACK libraries are correctly built and referenced, you should have no problems thereafter.

Regards,
Alan Berry.


Top
 Profile  
Reply with quote  
 Post subject: Re: WC13 compiling error
PostPosted: Tue Aug 27, 2013 4:46 pm 
Offline
Site Admin
User avatar

Joined: Wed Feb 26, 2003 4:41 pm
Posts: 1012
Location: IMCS, Rutgers University
The 4D-Var tutorials in :arrow: WikiROMS has an Instructions section to run each of these adjoint-based algorithms. It says that we need the ARPACK library to compile. If running in parallel with distributed-memory (MPI), you also need the PARPACK library.

:idea: If running ROMS complex adjoint-based algorithms, users need to read the instructions. This is not spam information for fast reading. It has to be read and understand it before running. If you don't understand this information, find help at your institution or read and assimilate the extensive literature on the subject. You are going to need this knowledge when setting your particular application. Otherwise, you will not be able to run these algorithms correctly.

There is plenty of information in this forum for the ARPACK/PARPACK libraries. We have advanced search capabilities in this forum :!:


Top
 Profile  
Reply with quote  
 Post subject: Re: WC13 compiling error
PostPosted: Wed Aug 28, 2013 2:21 am 
Offline

Joined: Fri Dec 28, 2012 5:44 am
Posts: 28
Location: National Marine Environmental Forecasting Center
hey Alan Berry,
Thank U for your reply!
Finding ARPACK\PARPACK libraries in the trunk/Lib, so i referened them as "pwd".
ifdef USE_ARPACK
ifdef USE_MPI
# PARPACK_LIBDIR ?= /opt/intelsoft/PARPACK
PARPACK_LIBDIR ?= /export/home/wangzc/swgfs/trunk/Lib/ARPACK/PARPACK
LIBS += -L$(PARPACK_LIBDIR) -lparpack
endif
# ARPACK_LIBDIR ?= /opt/intelsoft/PARPACK
ARPACK_LIBDIR ?= /export/home/wangzc/swgfs/trunk/Lib/ARPACK
LIBS += -L$(ARPACK_LIBDIR) -larpack
endif


but error still happened!
-L/export/home/wangzc/swgfs/trunk/Lib/ARPACK/PARPACK -lparpack -L/export/home/wangzc/swgfs/trunk/Lib/ARPACK -larpack
/export/home/wangzc/swgfs/projects/WC13/I4DVAR/Build/libUTIL.a(cgradient.o)(.text+0x1b4a): In function `cgradient_mod_mp_cgradient_tile_':
: undefined reference to `dsteqr_'
/export/home/wangzc/swgfs/projects/WC13/I4DVAR/Build/libUTIL.a(cgradient.o)(.text+0x3ffbc): In function `cgradient_mod_mp_cgradient_':
: undefined reference to `dsteqr_'
make: *** [/export/home/wangzc/swgfs/projects/WC13/I4DVAR/oceanM] Error 1

what should i do next?
--zongchen


Top
 Profile  
Reply with quote  
 Post subject: Re: WC13 compiling error
PostPosted: Wed Aug 28, 2013 2:53 am 
Offline

Joined: Fri Dec 28, 2012 5:44 am
Posts: 28
Location: National Marine Environmental Forecasting Center
hey arango,
Thank U for your guidance!
Quote:
This is not spam information for fast reading.

i have really tasted it! What i want to do is assimulating gauge stations' data(now just sea level) to ROMS for improving forecasting results of storm surge.i have read so many papers about the field. At the same time,i scan all of Lectures and Exercises in :arrow:WikiROMShttps://www.myroms.org/wiki/index.php/4DVar_Tutorial_Introduction .i read Primal 4D-Var, Mechanics of 4D-Var and Explanation of CPP Options, ocean.in, s4dvar.in (I4D-Var) in detail, trying to copy Exercise 1.
But i have nothing know about ARPACK/PARPACK libraries. do i need to understand them or go detailed study?
--zongchen


Top
 Profile  
Reply with quote  
 Post subject: Re: WC13 compiling error
PostPosted: Wed Aug 28, 2013 12:57 pm 
Offline
Site Admin
User avatar

Joined: Wed Feb 26, 2003 4:41 pm
Posts: 1012
Location: IMCS, Rutgers University
I don't see how you can possible tested these adjoint-based data assimilation algorithms. You always need the ARPACK/PARPACK library to compile before you run. We are using few routines from these libraries in the minimization algorithm (conjugate gradient).


Top
 Profile  
Reply with quote  
 Post subject: Re: WC13 compiling error
PostPosted: Mon Sep 02, 2013 9:49 am 
Offline

Joined: Fri Dec 28, 2012 5:44 am
Posts: 28
Location: National Marine Environmental Forecasting Center
Quote:
relates to ARPACK/LAPACK libraries which may need to be compiled and built (depending on your existing system set-up).


i sbatch workbooks in clusters, and i don't know whether ARPACK/PARPACK has been built. After searching the lib, it's sure there is nothing! So i try to compile and build the lib as Readme in the ARPACK. After a week, i succeed to accomplish the task,but it still does't work. Then i serach the problems via google, yeah, '-larpark' and 'lparpack' in the *.mk must write the form accordingly by Arpark.int.
-zongchen


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