How to enable libxc with abinit
Posted: Wed Nov 20, 2013 8:57 am
Dear Forum,
This is probably a silly question, but I have been unable to "enable" libxc with my abinit compilation. For example, using the
configure options (as reported in the config.log file - missing some quotes)
../configure --prefix=/home/natalie/EL6/publiccode/abinit/abinit-7.4.3 --exec-prefix=/home/natalie/EL6/publiccode/abinit/abinit-7.4.3 --enable-mpi --with-mpi-prefix=/rhel6/opt/openmpi/1.6-intel --with-fft-flavor=fftw3-mkl --with-linalg-flavor=mkl --with-dft-flavor=none --with-libxc-incs=-I/home/natalie/EL6/publiccode/libxc/include --with-libxc-libs=-L/home/natalie/EL6/publiccode/libxc/lib -lxc FC=ifort CC=icc CPP=icc -E --no-create --no-recursion
the compilation looks normal but, I am unable to use PAW atomic data files which have been created using the libxc functions. Even though the --with-libxc-libs and --with-libxc-incs commands seem to be recognized, the Makefile is not created with links to the libxc lib and include files:
lib_libxc_fcflags =
lib_libxc_incs =
lib_libxc_ldflags =
lib_libxc_libs =
In this case, the libxc files were already downloaded and compiled in the specified directory and used with atompaw. If I add the
configure option "--enable-libxc" it makes no difference.
When I run abinit with a libxc generated dataset, I get the error message:
Subroutine Unknown:0:ERROR
LibXC was not linked to this version:
recompile with libxc activated to use ixc < 0
Thanks in advance for your suggestions. Natalie
This is probably a silly question, but I have been unable to "enable" libxc with my abinit compilation. For example, using the
configure options (as reported in the config.log file - missing some quotes)
../configure --prefix=/home/natalie/EL6/publiccode/abinit/abinit-7.4.3 --exec-prefix=/home/natalie/EL6/publiccode/abinit/abinit-7.4.3 --enable-mpi --with-mpi-prefix=/rhel6/opt/openmpi/1.6-intel --with-fft-flavor=fftw3-mkl --with-linalg-flavor=mkl --with-dft-flavor=none --with-libxc-incs=-I/home/natalie/EL6/publiccode/libxc/include --with-libxc-libs=-L/home/natalie/EL6/publiccode/libxc/lib -lxc FC=ifort CC=icc CPP=icc -E --no-create --no-recursion
the compilation looks normal but, I am unable to use PAW atomic data files which have been created using the libxc functions. Even though the --with-libxc-libs and --with-libxc-incs commands seem to be recognized, the Makefile is not created with links to the libxc lib and include files:
lib_libxc_fcflags =
lib_libxc_incs =
lib_libxc_ldflags =
lib_libxc_libs =
In this case, the libxc files were already downloaded and compiled in the specified directory and used with atompaw. If I add the
configure option "--enable-libxc" it makes no difference.
When I run abinit with a libxc generated dataset, I get the error message:
Subroutine Unknown:0:ERROR
LibXC was not linked to this version:
recompile with libxc activated to use ixc < 0
Thanks in advance for your suggestions. Natalie