NERSCPowering Scientific Discovery Since 1974

ABINIT

Description

ABINIT is a package whose main program allows one to find the total energy, charge density and electronic structure of systems made of electrons and nuclei (molecules and periodic solids) within Density Functional Theory (DFT), using pseudopotentials and a planewave basis. ABINIT also includes options to optimize the geometry according to the DFT forces and stresses, or to perform molecular dynamics simulations using these forces, or to generate dynamical matrices, Born effective charges, and dielectric tensors. Excited states can be computed within the Time-Dependent Density Functional Theory (for molecules), or within Many-Body Perturbation Theory (the GW approximation). In addition to the main ABINIT code, different utility programs are provided.

How to Access ABINIT

NERSC uses modules to manage access to software. To use the default version of ABINIT, type:

% module load abinit

Using ABINIT on Hopper

There are two ways of running abinit on Hopper: submitting a batch job, or running interactively in an interactive batch session.

Sample Batch Script for ABINIT on Hopper

#PBS -N myjob
#PBS -q debug
#PBS -l mppwidth=16
#PBS -l walltime=00:30:00
#PBS -j oe
#PBS -V

cd $PBS_O_WORKDIR
module load abinit

aprun -n 16 abinit < test.files >& test.log

Then submit the job script using the qsub command, e.g., assuming the job script name is test_abinit.pbs:

% qsub test_abinit.pbs 

Sample Interactive Batch Script for ABINIT on Hopper

To request an interactive batch session, issue the command (e.g., requesting 8 PEs):

% qsub -I -V -q interactive -l mppwidth=8 

When the batch session is returned to you, issue the following commands:

% cd $PBS_O_WORKDIR
% module load abinit
% aprun -n 8 abinit < test.files >& test.log

Using ABINIT on Carver

A sample batch script for Carver:

 

#PBS -l nodes=2:ppn=8,walltime=0:30:00
#PBS -N test
#PBS -j oe
#PBS -q debug
#PBS -V

cd $PBS_O_WORKDIR
module load abinit

mpirun -np 16 abinit < test.files >& test.log

Note:  abinit on Carver was built with the pgi compiler, so the pgi and openmpi modules must be loaded at run time.

Documentation 

ABINIT Documentation

 

Compilation Instructions

Some advanced users may be interested in tweaking the Abinit build parameters and building Abinit themselves in their own directory. In order to aid in this process, and to provide a greater degree of transparency, the build instructions for the Abinit module are listed below. The following procedure was used to build Abinit 6.8.2 on Hopper.

% module swap PrgEnv-pgi PrgEnv-gnu

% module swap gcc gcc/4.5.2

% module load netcdf atompaw etsf_io wannier90 libxc

% ./configure -prefix="`pwd`/.." FC=ftn CC=CC CXX=CC FCFLAGS="-O3" CFLAGS="-O3" CXXFLAGS="-O3" --with-fc-vendor=gnu --enable-mpi --enable-mpi-io="yes" --enable-mpi-trace="no" --with-mpi-level=2 --with-linalg-flavor=custom --with-etsf-io-libs="$ETSF_IO" --with-etsf-io-incs="-I$ETSF_IO_DIR/include/gcc" --with-netcdf-libs="-L$CRAY_NETCDF_DIR/netcdf-gnu/lib/45 -lnetcdf -lnetcdff -lnetcdf_c++ -lnetcdf_c++4" --with-netcdf-incs="-I$CRAY_NETCDF_DIR/netcdf-gnu/include/45" --with-libxc-libs="$LIBXC" --with-libxc-incs="-I$LIBXC_DIR/include" --with-atompaw-libs="$ATOMPAW" --with-atompaw-bins="$ATOMPAW_DIR/bin" --with-wannier90-libs="$WANNIER90" --with-wannier90-bins="$WANNIER90_DIR/bin"

% make

% make install

Availability

PackagePlatformCategoryVersionModuleInstall DateDate Made Default
ABINIT carver applications/ material sciences 6.0.3 abinit/6.0.3 2010-05-06
ABINIT carver applications/ material sciences 6.10.3 abinit/6.10.3 2012-01-10
ABINIT carver applications/ material sciences 6.10.3-gpu abinit/6.10.3-gpu 2012-01-26
ABINIT carver applications/ material sciences 6.12.1 abinit/6.12.1 2012-02-13
ABINIT carver applications/ material sciences 6.12.1-gpu abinit/6.12.1-gpu 2012-02-06
ABINIT carver applications/ material sciences 6.12.1-magma abinit/6.12.1-magma 2012-02-10
ABINIT carver applications/ material sciences 6.2.2 abinit/6.2.2 2010-08-16
ABINIT carver applications/ material sciences 6.4.1 abinit/6.4.1 2010-11-24 2012-01-12
ABINIT edison applications/ material sciences 7.0.5 abinit/7.0.5 2013-03-12 2013-03-12
ABINIT edison applications/ material sciences 7.4.2 abinit/7.4.2 2014-06-26 2014-06-26
ABINIT edison applications/ material sciences 7.6.4 abinit/7.6.4 2014-06-27 2014-06-27
ABINIT edison applications/ material sciences 7.8.1 abinit/7.8.1 2014-07-10
ABINIT edison applications/ material sciences 7.8.2 abinit/7.8.2 2014-08-29
ABINIT hopper applications/ material sciences 6.10.3 abinit/6.10.3 2012-01-09
ABINIT hopper applications/ material sciences 6.12.1 abinit/6.12.1 2012-03-14
ABINIT hopper applications/ material sciences 6.4.3 abinit/6.4.3 2011-02-19 2011-02-19
ABINIT hopper applications/ material sciences 6.8.2 abinit/6.8.2 2012-01-09
ABINIT hopper applications/ material sciences 7.0.3 abinit/7.0.3 2012-11-29