link Yambo4.4.0 to NetCDF and HDF5

Having trouble compiling the Yambo source? Using an unusual architecture? Problems with the "configure" script? Problems in GPU architectures? This is the place to look.

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
Post Reply
el16yz
Posts: 23
Joined: Mon Sep 23, 2019 4:34 pm
Location: United Kingdom

link Yambo4.4.0 to NetCDF and HDF5

Post by el16yz » Thu Sep 26, 2019 10:47 am

Dear Yambo users,

I am trying to compile Yambo4.4.0 with NetCDF and HDF5 by ./configure --with-netcdf-lib=<$NETCDF_HOME/lib> --with-netcdf-include=<$NETCDF_HOME/include> --enable-netcdf-hdf5. But the problem occurs as:
configure: WARNING: unrecognized options: --with-netcdf-lib
ifort version 17.0.1
configure: WARNING: unrecognized options: --with-netcdf-lib
It will be very appreciated if you can solve this problem for me.

Best,
Yang Zhou

------
  • Yang Zhou
    PhD student
    University of Leeds
    United Kingdom
Yang Zhou
PhD student
University of Leeds
United Kingdom

User avatar
Daniele Varsano
Posts: 3816
Joined: Tue Mar 17, 2009 2:23 pm
Contact:

Re: link Yambo4.4.0 to NetCDF and HDF5

Post by Daniele Varsano » Thu Sep 26, 2019 10:52 am

Dear Yang,

--with-netcdf-libs
instead of
--with-netcdf-lib

but probably you can skip it as they were already recognized in your previous compilation.

Best,
Daniele
Dr. Daniele Varsano
S3-CNR Institute of Nanoscience and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu/

el16yz
Posts: 23
Joined: Mon Sep 23, 2019 4:34 pm
Location: United Kingdom

Re: link Yambo4.4.0 to NetCDF and HDF5

Post by el16yz » Thu Sep 26, 2019 11:18 am

Dear Daniele,

Thank you. You really help me a lot. Yes, you are right. It is

--with-netcdf-libs
rather than
--with-netcdf-lib

It will be good if you can modify it in http://www.yambo-code.org/download/installing.php on "NetCDF support" section in the case of confusing other Yambo usesr.

And how do you know they have been linked? After I try the configure script you suggest, it appears:
./configure --with-netcdf-libs=<$NETCDF_HOME/lib> --with-netcdf-include=<$NETCDF_HOME/include> --enable-netcdf-hdf5
ifort version 17.0.1
Is that mean my compile is successful?

Best,
Yang
Yang Zhou
PhD student
University of Leeds
United Kingdom

User avatar
Daniele Varsano
Posts: 3816
Joined: Tue Mar 17, 2009 2:23 pm
Contact:

Re: link Yambo4.4.0 to NetCDF and HDF5

Post by Daniele Varsano » Thu Sep 26, 2019 11:22 am

Dear Yang,
And how do you know they have been linked?
Because they are mandatory, in case they were not linked your previous compilation would have stop.
The --with-netcdf* are needed in the case they are not located in standard location and they are not recognized by the configure.
Daniele
Dr. Daniele Varsano
S3-CNR Institute of Nanoscience and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu/

Post Reply