<HTML><br></HTML> This manpage is available as ~abinit_src_dir/README.MacOSX
<HTML><hr></HTML>
<HTML><br></HTML>
A Homebrew formula for ABINIT is available (authors: D. Davydov + M. Torrent).
Tested with mac OS X v10.9 (Mavericks), v10.10 (Yosemite), 10.11 (El Capitan).
Homebrew is available at brew.sh
Xcode
and Xcode command line tools
to be installed;xcode-select --install
brew install homebrew/science/abinit
netCDF
, fftw
…).LibXC
, ETSF_IO
and netCDF
fallbacks (plugins) are used by default.FoX
, Wannier90
and BigDFT
are not available in Homebrew.AtomPAW
can be installed as a separate package (formula).--with-testsuite
--without-check
--without-etsf_io
--without-netcdf
--without-fftw
--without-gsl
--without-scalapack
<HTML><hr></HTML>
<HTML><br></HTML>
Available from ABINIT v7.4.3
Tested with mac OS X v10.8 (Mountain Lion), v10.9 (Mavericks), v10.10 (Yosemite).
MacPorts is available at macports.org.
gcc
(last version) with Fortran variant (Fortran compiler),mpich
or openmpi
(MPI)sudo port selfupdate sudo port upgrade outdated
Xcode
and Xcode command line tools
to be installed;xcode-select --install
sudo port install abinit
LOCAL_REPOSITORY
in the following. This might be: LOCAL_REPOSITORY=/Users/my_login/ports
or
LOCAL_REPOSITORY=/opt/local/localports
Replace LOCAL_REPOSITORY
by the correct string in the following…
/opt/local/etc/macports/sources.conf
(with administrator privileges) and add these two lines at the end:file://LOCAL_REPOSITORY rsync://rsync.macports.org/release/ports [default]
LOCAL_REPOSITORY/science/abinit
LOCAL_REPOSITORY/science/abinit
directory.cd LOCAL_REPOSITORY/science/abinit tar -xvzf Portfile.tar.gz
cd LOCAL_REPOSITORY sudo portindex
sudo port install abinit @X.Y.Z
libXC
, ETSF_IO
, Wannier90
FFTW3
library:sudo port install abinit @X.Y.Z +fftw3
ScaLapack
:sudo port install abinit @X.Y.Z +scalapack
openMP
) version of ABINIT:sudo port install abinit @X.Y.Z +threads
atompaw
PAW atomic dataset generator:sudo port install abinit @X.Y.Z +atompaw
or
sudo port install atompaw
sudo port install abinit @X.Y.Z +fftw3+scalapack+threads+atompaw
port info abinit
<HTML><hr></HTML>
<HTML><br></HTML>
Mac OSX
Xcode
installed with Xcode command line tools
;xcode-select --install
gfortran
binary from: HPC sourceForgefortran
binary from: gnu.orggfortran
installed via a package manager (MacPorts, Homebrew, Fink)Intel Fortran compiler
scalapack
, atlas
, mkl
, …cd abinit_src_dir mkdir build && cd build
../configure FC=gfortran CC=clang FCFLAGS_EXTRA="-ffree-line-length-none"
../configure FC=mpif90 CC=mpicc FCFLAGS_EXTRA="-ffree-line-length-none" \ --enable-mpi --enable-mpi-io
make mj4
make install
libXC
, netCDF
, …), consult the configure script help:../configure --help
The --with-dft-flavor
and --with-trio-flavor
have to be adjusted.
<HTML><hr></HTML>
Author: M. Torrent, April 2015, rev. Feb. 2016