Problems with GridDataReader

Discussion about building and installing Elmer
Post Reply
jaime
Posts: 6
Joined: 02 Sep 2010, 00:35

Problems with GridDataReader

Post by jaime »

Hi all,
I'm trying to use the GridDataReader module. I first compiled it, and everything was fine ( I think so...) and so I tried to run the example provide in the module directory, case2d.sif. But I obain this error in the console log:

Code: Select all

ELMER SOLVER (v 7.0) STARTED AT: 2013/10/03 09:44:50
MAIN: 
MAIN: =============================================================
MAIN: ElmerSolver finite element software, Welcome!
MAIN: This program is free software licensed under (L)GPL
MAIN: Copyright 1st April 1995 - , CSC - IT Center for Science Ltd.
MAIN: Webpage http://www.csc.fi/elmer, Email elmeradm@csc.fi
MAIN: Library version: 7.0 (Rev: 6331)
MAIN: =============================================================
MAIN: 
MAIN: 
MAIN: -------------------------------------
MAIN: Reading Model: case2d_copia.sif
WARNING:: LoadInputFile: Empty section given for: material 1
Model Input:  Unlisted keyword: [x dim name] in section: [solver 1]
Model Input:  Unlisted keyword: [x var name] in section: [solver 1]
Model Input:  Unlisted keyword: [epsilon x] in section: [solver 1]
Model Input:  Unlisted keyword: [interpolation bias] in section: [solver 1]
Model Input:  Unlisted keyword: [interpolation multiplier] in section: [solver 1]
Model Input:  Unlisted keyword: [is time counter] in section: [solver 1]
Model Input:  Unlisted keyword: [enable scaling] in section: [solver 1]
WARNING:: LoadInputFile: Entry missing for: Material 1
Loading user function library: [./GridDataReader]...[GridDataReader_Init0]

Load: Unable to open shared library: [./GridDataReader]
./GridDataReader: cannot open shared object file: No such file or directory

Load: Unable to open shared library: [./GridDataReader.so]
./GridDataReader.so: undefined symbol: __netcdf_MOD_nf90_inq_varid

Load: Unable to open shared library: [././GridDataReader]
././GridDataReader: cannot open shared object file: No such file or directory

Load: Unable to open shared library: [././GridDataReader.so]
././GridDataReader.so: undefined symbol: __netcdf_MOD_nf90_inq_varid

Load: Unable to open shared library: [/opt/elmer/share/elmersolver/lib/./GridDataReader]
/opt/elmer/share/elmersolver/lib/./GridDataReader: cannot open shared object file: No such file or directory

Load: Unable to open shared library: [/opt/elmer/share/elmersolver/lib/./GridDataReader.so]
/opt/elmer/share/elmersolver/lib/./GridDataReader.so: cannot open shared object file: No such file or directory
First I have the netcdf libraries from ubuntu repositories (ubuntu 12.04), but I also have compiled the libraries with the same version of gfortran that Elmer uses, but nothing better happened.

Do you have any ideas where is the problem?
Thank you
Cheers
Jaime
mzenker
Posts: 1998
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Problems with GridDataReader

Post by mzenker »

Just a guess: if you have written "./GridDataReader.so" in your sif file, try "GridDataReader.so" instead, maybe Elmer doesn't find the file because of the duplicated "./".

HTH,

Matthias
jaime
Posts: 6
Joined: 02 Sep 2010, 00:35

Re: Problems with GridDataReader

Post by jaime »

Thank you for your answer Matthias

I've tried but nothing happens.

Could someone help me?

Cheers

Jaime
mzenker
Posts: 1998
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Problems with GridDataReader

Post by mzenker »

Another guess: do you have read and execute access to the file (permissions r-x or rwx)?

I know Linux, but have to use Elmer under Windoze. So maybe someone of the Elmer Linux users can help you further...

Matthias
tzwinger
Site Admin
Posts: 94
Joined: 24 Aug 2009, 12:20
Contact:

Re: Problems with GridDataReader

Post by tzwinger »

Hi,
I know, that comes ridiculously delayed, but we have had fixed that for Jaime already during the Elmer/Ice advanced workshop. Nevertheless, for the records (should someone else be interrupted by a similar issue): That error is likely to occur when forgetting to link the correct libraries and/or not providing the path for the system to find them. One has to make sure that
1) the correct libraries are linked: In our case (on Ubuntu 12.04 LTS as well as our production platform RHEL) that was

Code: Select all

elmerf90 GridDataReader.f90 -o /wherever/you/want/GridDataReader.so -lnetcdff -lnetcdf
2)the path where libnetcdff.so and libnetcdf.so are to be found is in the LD_LIBRARY_PATH


Thomas
Post Reply