This is a collection of fortran modules and routines to support quantum many-body calculations, with a strong focus on Dynamical Mean-Field Theory.
There are still many useful features missing. Anyone is welcome to contribute or to test the software.
- GNU Fortran (
gfortran
) > 5.0 OR Intel Fortran Compiler Classic (ifort
) > 13.0 - CMake ≥ 3.0 [> 3.16 for ninja support]
- Make OR Ninja ≥ 1.10
- SciFortran, our scientific fortran library
- MPI [optional, recommended]
- ScaLAPACK [optional, recommended]
If any of the required libraries is not available in your system, or the version requirement is not satisfied, please install/upgrade them. Except for SciFortran (for which you should follow the installation instructions reported in the linked README), we generally advice for pre-packaged versions, as provided by either apt
, pip
, brew
, conda
or spack
. The latter may provide the best options for HPC environments (trivial installation without sudo, easy management of interdependent multiple versions, automatic generation of environment modules, etc.), but choose freely according to your needs.
Our build system relies on CMake. Clone the repo:
git clone https://github.com/aamaricci/DMFTtools dmft_tools
Using make (click to expand)
Default CMake workflow, with widest version support (CMake > 3.0).mkdir build
cd build
cmake ..
make
Using ninja (click to expand)
If a fortran-capable1 version of ninja
( https://ninja-build.org ) is available in your system (and CMake can2 take advantage of it), you can use it to build the library at lightning, multi-threaded, speed.
mkdir build
cd build
cmake -GNinja ..
ninja
System-wide installation is completed after the build step using either:
make install
or
ninja install
To actually link the library we provide some alternatives:
- A generated pkg-config file to, installed to
~/.pkgconfig.d/dmft_tools.pc
- A generated environment module, installed to
~/.modules.d/dmft_tools/<PLAT>/<VERSION>
- Two generated
bash
scripts at<PREFIX>/bin/
, to be sourced for permanent loading (user or global).
which you can choose among by following the instructions printed on screen.
CMake does not officially provide uninstall procedures in the generated Make/Ninja files. Hence DMFTtools supplies a homebrew method to remove the generated files by calling (from the relevant build folder): make uninstall
/ ninja uninstall
.
If you encounter bugs or difficulties, please file an issue. For any other communication, please reach out to:
adriano DOT amaricci @ gmail DOT com
--
LICENSE
<<<<<<< HEAD
Copyright (C) Adriano Amaricci, Gabriele Bellomia, Samuele Giuli, Lorenzo Crippa, Giacomo Mazza
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as published by the Free Software Foundation, either version 3 of the License, or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU LGPL for more details.
You should have received a copy of the GNU LGPL along with this program. If not, see http://www.gnu.org/licenses/.
Footnotes
-
Ninja did not support fortran before version 1.10, although Kitware has long mantained a fortran-capable fork, which might be obtained easily as a Spack package. Nevertheless we note that as of fall 2022
pip install ninja --user
ships Ninja v1.10.2, hence obtaining a suitable official Ninja release should be trivial. ↩ -
This depends on your CMake version. Comparing this to this would suggest that CMake started supporting Ninja's fortran features only after v3.17 but we have verified that at least v3.16.3 (current version shipped by
apt
on Ubuntu 20.04 LTS) does indeed work. For more information you can take a look to a related SciFortran issue. ↩