Quantum Espresso and HDF5 Download and Installation
PERTURBO uses a few subroutines from the PWSCF and Phonon packages of Quantum Espresso (QE). Therefore, it needs to be compiled on top of QE. PERTURBO needs the output files from Wannier 90 (W90), which can ba obtained from the QE. In addition, PERTURBO uses the HDF5 format to store data. For the detailed instructions on the installation of these packages, please refer to their official websites: QE, HDF5. If you run the calculations on a cluster or a supercomputer, these packages might be already pre-installed. Here we provide some brief instructions on the installation of these packages. Please note that these instructions can be different for your computing environement.
HDF5
To compile the HDF5 library, please download its source code from the official website. Once the source code is downloaded, please create an empty directory where the HDF5 library will be installed.
For example, the current directory is called ‘mylib’. We download the source code inside the directory called ‘hdf5-1.12.0-source-codes’. Now we are going to install the HDF5 library into a directory called ‘hdf5’.
Generate a Makefile for compiling the HDF5 library using the fortran option: --enable-fortran
. Please modify the 'prefix'
path to fit your case. Here we compile the serial HDF5 library:
cd hdf5-1.12.0-source-codes
./configure --prefix=mylib/hdf5 --enable-fortran
One can specify the compilers running the ./configure
command with the additional options: CC=<c compiler>
, CXX=<c++ compiler>
, FC=<fortran compiler>
. For more information, run ./configure --help
. Compile HDF5:
make
make install
To check whether HDF5 was compiled correctly, one can run the test suite:
make test
Now we have the compiled HDF5 library inside the directory ‘hdf5’. We suggest to use the directory path when compiling QE (--with-hdf5=mylib/hdf5
flag for QE compilation, see below).
export HDF5_USE_FILE_LOCKING=FALSE
Quantum Espresso
To download QE, one can use the wget
command:
wget https://github.com/QEF/q-e/archive/qe-7.2.tar.gz
tar xvzf qe-7.2.tar.gz
cd q-e-qe-7.2
or to clone the package from the QE GitHub repository, specifying the version:
git clone https://github.com/QEF/q-e.git
cd q-e
git checkout qe-7.2
Once the package is downloaded run the configure command:
./configure
Configuration parameters strongly depend on the compilation scenarios (compilers, parallelization, etc.). On the PERTURBO github page you can find several compilation scripts with corresponding parameters.
When you can compile QE with W90:
make pw ph pp w90
PERTURBO Download and Installation
Download
In order to get access to the code, please fill out this form.
To help us keep track of user number, we encourage each individual user to submit a separate request for code download. For example, research groups with multiple users should also have each user submit a request.
If the the form does not work, see here the instructions.
Clone from GitHub (or extract .tar.gz) into the QE directory. There are three subdirectories inside the directory “perturbo”:
- “config” contains the system-dependent configurational files make_XXX.sys.
- “pert-src” contains the source code of
perturbo.x
to compute electron dynamics - “qe2pert-src” contains the source code of the interface program
qe2pert.x
The source code is supplemented by the tutorial examples input, output files, as well as by the Python postprocessing package Perturbopy.
Installation
PERTURBO uses the configurational file ../make.inc generated by QE and requires another configuration file called make.sys, which specifies additional options required by Perturbo. The examples of the files make.sys can be found in the config folder.
Copy one of the make.sys files from the config folder:
$ cp config/make_gcc_serial.sys make.sys
and make the necessary changes to it. For example, you need to specify the path to your HDF5 library, if you haven’t made it on the step of the QE compilation:
IFLAGS += -I/path/to/hdf5/include
HDF5_LIBS = -L/path/to/hdf5/lib -lhdf5 -lhdf5_fortran
Once the file make.sys has been modified, you are ready to compile PERTURBO:
make
After the compilation, a directory called ‘bin’ is generated, which contains two executables, perturbo.x
and qe2pert.x
.
Name:
Organization:
Country:
I am going to use PERTURBO for:
GitHub username: