Coder Social home page Coder Social logo

qcmplab / dmfttools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aamaricci/dmfttools

2.0 0.0 1.0 933 KB

A collection of fortran modules and routines to support quantum many-body calculations, with a strong focus on Dynamical Mean-Field Theory

License: GNU Lesser General Public License v3.0

Shell 0.12% Fortran 98.20% CMake 1.68%

dmfttools's Introduction

DMFTtools

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.

Dependencies

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.

BUILD

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

INSTALL

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.

UNINSTALL

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.

CONTACT

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

  1. 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.

  2. 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.

dmfttools's People

Contributors

aamaricci avatar angelovalli avatar beddalumia avatar fpetocchi avatar giacmazza avatar lcrippa avatar samuelegiuli avatar

Stargazers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.