Linking with NETCDF
Moderators: Davide Sangalli, andrea.ferretti, myrta gruning, andrea marini, Daniele Varsano, Conor Hogan, Nicola Spallanzani
Forum rules
If you have trouble compiling Yambo, please make sure to list:
(1) the compiler (vendor and release: e.g. intel 10.1)
(2) the architecture (e.g. 64-bit IBM SP5)
(3) if the problems occur compiling in serial/in parallel
(4) the version of Yambo (revision number/major release version)
(5) the relevant compiler error message
If you have trouble compiling Yambo, please make sure to list:
(1) the compiler (vendor and release: e.g. intel 10.1)
(2) the architecture (e.g. 64-bit IBM SP5)
(3) if the problems occur compiling in serial/in parallel
(4) the version of Yambo (revision number/major release version)
(5) the relevant compiler error message
-
- Posts: 28
- Joined: Wed Oct 14, 2009 5:43 pm
Linking with NETCDF
hi sir,
Thanks for guidance. I will use Abinit for all my calculations.
Sir, as u suggested,i tried to install the yambo with netcdf. Please tell one thing.
I download netcdf -4.01, extract it in home folder(/home/sushil) and compile it with
./configure --prefix=/home/sushil/net (where net is a folder i created)
make check install
i got netcdf compiled with no error. and all tests were passed.
Now i have , in net folder ,
bin include lib src
and in netcdf-4.0.1 folder ,
cxx cxx4 examples f90 fortran libncdap libsrc libsrc4 m4 man4 ncdap_test ncdump ncgen ncgen4 nctest nc_test nf_test win32
Sir, i want to ask, now if i have to compile the yambo with netcdf libraries which path to specify??
i tried
./configure --with-netcdf=/home/sushil/net/lib
but the configuration was not with netcdf. Please guide
thanks
with regards
Dev
Thanks for guidance. I will use Abinit for all my calculations.
Sir, as u suggested,i tried to install the yambo with netcdf. Please tell one thing.
I download netcdf -4.01, extract it in home folder(/home/sushil) and compile it with
./configure --prefix=/home/sushil/net (where net is a folder i created)
make check install
i got netcdf compiled with no error. and all tests were passed.
Now i have , in net folder ,
bin include lib src
and in netcdf-4.0.1 folder ,
cxx cxx4 examples f90 fortran libncdap libsrc libsrc4 m4 man4 ncdap_test ncdump ncgen ncgen4 nctest nc_test nf_test win32
Sir, i want to ask, now if i have to compile the yambo with netcdf libraries which path to specify??
i tried
./configure --with-netcdf=/home/sushil/net/lib
but the configuration was not with netcdf. Please guide
thanks
with regards
Dev
Dev Sharma,
Junior Research Fellow
Department of Physics & Astrophysics,
University of Delhi,
India
Junior Research Fellow
Department of Physics & Astrophysics,
University of Delhi,
India
- Conor Hogan
- Posts: 111
- Joined: Tue Mar 17, 2009 12:17 pm
- Contact:
Re: Linking with NETCDF
Dear Dev,
Unfortunately the web page has not been updated to show this for the latest versions of the code, but you can always check the correct configure options using
It this case it shows you:
so you need to make the appropriate modifications.
Regards,
Conor
Unfortunately the web page has not been updated to show this for the latest versions of the code, but you can always check the correct configure options using
Code: Select all
./configure --help
Code: Select all
--with-netcdf-include=<path>
Path of the NetCDF include directory
--with-netcdf-lib=<path>
Path of the NetCDF lib directory
Regards,
Conor
Dr. Conor Hogan
CNR-ISM, via Fosso del Cavaliere, 00133 Roma, Italy;
Department of Physics and European Theoretical Spectroscopy Facility (ETSF),
University of Rome "Tor Vergata".
CNR-ISM, via Fosso del Cavaliere, 00133 Roma, Italy;
Department of Physics and European Theoretical Spectroscopy Facility (ETSF),
University of Rome "Tor Vergata".
-
- Posts: 31
- Joined: Tue Apr 07, 2009 4:39 pm
Re: Linking with NETCDF
Hi guys,
netcdf compiling error, I presume:
I'm compiling on this machine in CCRT:
952 Machines Bull modèles 3045 et 3045c sous OS Bull Advanced Server 4 version 5
64-bit
i load this modules (that are supposed to be coherent each other I hope..)
1) mpibull2/1.3.9-5.s(default) 2) intel/11.1.056(default) 3) fftw3/3.2.1 4) netcdf/3.6.2 5) mkl/10.1.0.015
i use this configure:
and after a good configure, doing make yambo, I found en error with these two modules:
Now: I ask of course to the ccrt guys, but in the meanwhile, since they don't reply yet, do you think is a problem of netcdf precompilation or not?
Thanks!
ff
netcdf compiling error, I presume:
I'm compiling on this machine in CCRT:
952 Machines Bull modèles 3045 et 3045c sous OS Bull Advanced Server 4 version 5
64-bit
i load this modules (that are supposed to be coherent each other I hope..)
1) mpibull2/1.3.9-5.s(default) 2) intel/11.1.056(default) 3) fftw3/3.2.1 4) netcdf/3.6.2 5) mkl/10.1.0.015
i use this configure:
Code: Select all
./configure --with-iotk=/home/cont003/feffe/CODES/PLATINE/espresso-4.1.2/iotk --with-fftw=/applications/fftw3-3.2.1/ --with-netcdf-lib=/opt/scilibs/NETCDF/netCDF-3.6.2/lib --with-netcdf-include=/opt/scilibs/NETCDF/netCDF-3.6.2/include --with-p2y=4.0 --enable-largedb FC=/opt/mpi/mpibull2-1.3.9-5.s/bin/mpif90 FCFLAGS=-nofor-main
Code: Select all
home/cont003/feffe/CODES/PLATINE/yambo-3.2.1_rev576/lib/libmodules.a
/home/cont003/feffe/CODES/PLATINE/yambo-3.2.1_rev576/lib/libio.a
make[1]: *** [yambo] Error 1
make[1]: Leaving directory `/home/cont003/feffe/CODES/PLATINE/yambo-3.2.1_rev576/driver'
make: *** [yambo] Error 2
Now: I ask of course to the ccrt guys, but in the meanwhile, since they don't reply yet, do you think is a problem of netcdf precompilation or not?
Thanks!
ff
- myrta gruning
- Posts: 242
- Joined: Tue Mar 17, 2009 11:38 am
- Contact:
Re: Linking with NETCDF
Ciao Feffe
Usually netcdf problems appear from the configure...
It seems you have the problem at the final stage while yambo is linking all the libs
libmodules.a
libio.a
that are generated by the yambo compilation.
Maybe they were not properly cleaned from a previous compilation
well this is just an hypothesis, the compiler error message is not really helpful.
You may try with a
make clean
checking that all the *.a and *.o are cleaned and then re-do
make yambo
m
Usually netcdf problems appear from the configure...
It seems you have the problem at the final stage while yambo is linking all the libs
libmodules.a
libio.a
that are generated by the yambo compilation.
Maybe they were not properly cleaned from a previous compilation

You may try with a
make clean
checking that all the *.a and *.o are cleaned and then re-do
make yambo
m
Dr Myrta Grüning
School of Mathematics and Physics
Queen's University Belfast - Northern Ireland
http://www.researcherid.com/rid/B-1515-2009
School of Mathematics and Physics
Queen's University Belfast - Northern Ireland
http://www.researcherid.com/rid/B-1515-2009
-
- Posts: 31
- Joined: Tue Apr 07, 2009 4:39 pm
Re: Linking with NETCDF
ciao Myrta!
thanks.
I will try as you suggest. I will let you know!
ciau!
ff
thanks.
I will try as you suggest. I will let you know!
ciau!
ff
-
- Posts: 31
- Joined: Tue Apr 07, 2009 4:39 pm
Re: Linking with NETCDF
sorry no way.
i still get this as last of a long list of errors:
sigh.
i still get this as last of a long list of errors:
Code: Select all
/home/cont003/feffe/CODES/PLATINE/yambo-prova/yambo-3.2.1_rev576/lib/libmodules.a(mod_IO.o)(.text+0x6192): In function `io_m_mp_variable_is_found_':
: undefined reference to `netcdf_mp_nf90_inq_varid_'
- andrea marini
- Posts: 325
- Joined: Mon Mar 16, 2009 4:27 pm
- Contact:
Re: Linking with NETCDF
Feffe, do a make clean_all and after the configure list the contents of the lib/ and include/ folders (before compiling). They should look like
Code: Select all
include/:
bison gsl_complex.h gsl_complex_math.h netcdfcpp.h netcdf.h netcdf.hh netcdf.inc netcdf.mod parser.h symbols.h typesizes.mod version.inc
lib/:
blas lapack libiotk.a libnetcdf.a libnetcdf_c++.a local slatec
Andrea MARINI
Istituto di Struttura della Materia, CNR, (Italy)
Istituto di Struttura della Materia, CNR, (Italy)
-
- Posts: 31
- Joined: Tue Apr 07, 2009 4:39 pm
Re: Linking with NETCDF
andrea marini wrote:Feffe, do a make clean_all and after the configure list the contents of the lib/ and include/ folders (before compiling). They should look like
Code: Select all
include/: bison gsl_complex.h gsl_complex_math.h netcdfcpp.h netcdf.h netcdf.hh netcdf.inc netcdf.mod parser.h symbols.h typesizes.mod version.inc lib/: blas lapack libiotk.a libnetcdf.a libnetcdf_c++.a local slatec
yes, they are like that.
- andrea marini
- Posts: 325
- Joined: Mon Mar 16, 2009 4:27 pm
- Contact:
Re: Linking with NETCDF
Ok. so the problem is at the linking time. Last you think we can try is to compile using
Then you can redirect configure and compilation log with
then tar the two files and post them here om the forum. Maybe from the messages of the configure/make we can guess where the problem is.
Code: Select all
configure (...) --enable-msgs-comps
Code: Select all
./configure (...) >& CONFIGURE_LOG
make (...) >& COMPILATION_LOG
Andrea MARINI
Istituto di Struttura della Materia, CNR, (Italy)
Istituto di Struttura della Materia, CNR, (Italy)
-
- Posts: 31
- Joined: Tue Apr 07, 2009 4:39 pm
Re: Linking with NETCDF
thanks. ok. the file are in attachement.andrea marini wrote:Ok. so the problem is at the linking time. Last you think we can try is to compile using
Then you can redirect configure and compilation log withCode: Select all
configure (...) --enable-msgs-comps
then tar the two files and post them here om the forum. Maybe from the messages of the configure/make we can guess where the problem is.Code: Select all
./configure (...) >& CONFIGURE_LOG make (...) >& COMPILATION_LOG
sorry to bother, since now no improvement.
You do not have the required permissions to view the files attached to this post.