GithubHelp home page GithubHelp logo

kgridgen's Introduction

kgridGen

Generator for k-point grids.

This code takes a general, integer multiple (3x3 matrix) of the reciprocal lattice vectors and generates a corresponding integration grid. The code can also generate the symmetrically distinct kpoints of the full list, with their corresponding weights. Arbitrary shifts of the k-grid generating vectors are also allowed.

To compile the FORTRAN library.

First we need a clean copy of symlib (https://github.com/msg-byu/symlib/).

git clone [email protected]:msg-byu/symlib.git
cd symlib/src/
make F90=gfortran
cd ../../

You can alternatively compile with the ifort compiler. New we can compile the src code for kgridGen.

git clone [email protected]:msg-byu/kgridGen.git
cd kgridGen/src/
make F90=gfortran kpoints.x

This will compile all the needed libraries and the executable for the kpoints code. Please note that the input for the code is in the driver so in order to run different cases.

To compile the python libraries.

To compile the python wrapped version first complete the steps needed for compiling the fortran code. Then do the following in the kgridGen/wrap directory.

pip install f90wrap
make F90=gfortran

This will create the shared libraries _kpoints.so and _kgridgen.so which will need to be added to the python path or kept in the folder with the kpoints.py file.

For MSG students: Bounty for bugs: $20 Bounty for fixes: $20

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.