Code Monkey home page Code Monkey logo

integerlattice's Introduction

Integer Lattice

Philip Mocz (2016)

Harvard University

(code in development)

method based on Mocz & Succi (2016)

Libraries

Needs the PoisFFT package

https://github.com/LadaF/PoisFFT

You can install the library locally and add it to your path. E.g. Add the following to your .bashrc file:

export LD_LIBRARY_PATH=/home/pmocz/PoisFFT/lib/gcc:$LD_LIBRARY_PATH

To install this library, in your directory for libraries, you can do

git clone https://github.com/LadaF/PoisFFT.git
cd PoisFFT/
cd src/
scons

Also needs hdf5, fftw3

You will have to modify the Makefile to point to your library installations

How to run

recompile and run:

make clean; make; ./IntegerLattice 

to run in parallel (METHOD_MEMSAVE only):

mpirun -n 4 ./IntegerLattice

to compile job on odyssey:

./makeOdyssey.sh 

to submit job to a queue (e.g. odyssey cluster):

sbatch submit.sh

to plot snapshots (e.g. snaps 0, 10, 20, 30), in the analysis/ folder, run the python script:

python plot.py 0 10 20 30

or, to plot the snapshots run in parallel mode (split files), run:

python plotParallel.py 0 10 20 30

Useful references

example FFTW https://github.com/undees/fftw-example/blob/master/fftw_example.c

3d array http://www.cplusplus.com/forum/articles/7459/

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.