Download and Install

Download

  1. Download version 9.4.2 of abinit.

wget https://www.abinit.org/sites/default/files/packages/abinit-9.4.2.tar.gz

小技巧

One should also download the recommended ABINIT Fallbacks

  1. Download Fallbacks of abinit-9.4.2

Compile

Before compile abinit package, one should create a installation direction and copy the abinit and wannier90 to this direction. Next, one should build a tarballs by following command.

mkdir -p ~/.abinit/tarballs

Move the packages of above download (exclude wannier90) to tarballs.

Compile wannier90

  1. Unpack and configure wannier90. This can be done by copy/pasting the following lines:

tar zxvf wannier90-2.0.1.1.tar.gz && \
cd wannier90-2.0.1.1 && \
./configure FC=mpiifort CC=mpiicc \
    prefix=/opt/software/wannier90-2.0.1.1/build/ && \
make && \
make install

Compile abinit

  1. Create configure file compile.sh

./configure FC=mpiifort CC=mpiicc \
    --prefix=/opt/software/abinit-9.4.2/build \
    --enable-mpi-io=yes \
    --with-mpi=/opt/intel/impi/2019.9.304/intel64 \
    --enable-mpi-inplace=yes \
    --enable-openmp=yes \
    --enable-bse-unpacked=yes \
    --enable-gw-dpc=yes \
    --with-wannier90=/opt/software/wannier90-2.0.1.1/build
  1. configure abinit

bash compile.sh
  1. compile fallbacks by following commands

cd fallbacks && bash build-abinit-fallbacks.sh
  1. edit the compile.sh

./configure FC=mpiifort CC=mpiicc \
--prefix=/opt/software/abinit-9.4.2/build \
--enable-mpi-io=yes \
--with-mpi=/opt/intel/impi/2019.9.304/intel64 \
--enable-mpi-inplace=yes \
--enable-openmp=yes \
--enable-bse-unpacked=yes \
--enable-gw-dpc=yes \
--with-wannier90=/opt/software/wannier90-2.0.1.1/build \
with_libxc=/opt/software/abinit-9.4.2/fallbacks/install_fb/intel/19.1/libxc/4.3.4 \
with_hdf5=/opt/software/abinit-9.4.2/fallbacks/install_fb/intel/19.1/hdf5/1.10.6 \
with_netcdf=/opt/software/abinit-9.4.2/fallbacks/install_fb/intel/19.1/netcdf4/4.6.3 \
with_netcdf_fortran=/opt/software/abinit-9.4.2/fallbacks/install_fb/intel/19.1/netcdf4_fortran/4.5.2 \
with_xmlf90=/opt/software/abinit-9.4.2/fallbacks/install_fb/intel/19.1/xmlf90/1.5.3.1 \
with_libpsml=/opt/software/abinit-9.4.2/fallbacks/install_fb/intel/19.1/libpsml/1.1.7
  1. configure abinit

bash compile.sh
  1. compile abinit

make -j<n> && make install
  1. test abinit

./runtests.py v1 -j4

The test results are as follows.

../_images/abinit_test_v1.png