Giter Club home page Giter Club logo

ebss's Introduction

ebss

The "Energy Basis Schrödinger Solver"

Setup:

Homebrew and dependencies

Install Homebrew:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Then install needed packages:

brew install gcc
brew install openmpi
brew install openblas
brew install wget # just to make this a little easier.
brew install boost --c++11, --with-mpi, --without-single
brew install gsl

PETSc and (optional, but easier) SLEPc:

Download and install PETSc in some convenient directory:

wget http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-3.5.3.tar.gz # the lite version doesn't include documentation
tar zxf petsc-lite-3.5.3.tar.gz
cd petsc-3.5.3

The following is my configure command for creating the debug version of PETSc. Replace with better values for you:

./configure --prefix=<wherever you want to put it (but not in petsc-3.5.3)> \
            --with-clanguage=cxx \
            --with-c++-support \
            --with-debugging=1 \
            --with-fortran-kernels \
            --with-shared-libraries=true \
            --with-scalar-type=complex \
            --with-blas-lapack-dir=/usr/local/Cellar/openblas/<current_version> \
            --with-mpi=1 \

run the configure, then copy and run each command given to you after it finishes.

SLEPc:

Download SLEPc in some convenient directory:

wget http://slepc.upv.es/download/download.php?filename=slepc-3.5.3.tar.gz
mv download.php\?filename=slepc-3.5.3.tar.gz slepc-3.5.3.tar.gz
tar zxf slepc-3.5.3.tar.gz
cd slepc-3.5.3

Then the configure command:

export PETSC_DIR=<prefix from above>; ./configure --prefix=<wherever you want to put it (not in slepc-3.5.3)>

run the configure, then copy and run each command after it finishes.

Modifying and compiling code:

Finally we get to screwing around with ebss itself:

modify the makefile:

in the root project directory, there is a file: makefile.include. Modify the first two uncommented lines to the prefixes from above, and the third line:

SLEPC_DIR=<from above for SLEPc>
PETSC_DIR=<from above for PETSc>
TDSEBASE=<the full path of the project root directory>

After this, you should be done!

ebss's People

Contributors

nickpellatz avatar spott avatar

Watchers

 avatar  avatar  avatar  avatar

ebss's Issues

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.