Coder Social home page Coder Social logo

marcello-sega / poisfft Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ladaf/poisfft

0.0 2.0 0.0 228 KB

Free parallel fast Poisson solver. Requires FFTW3 and optionally PFFT.

License: Other

Python 2.62% Fortran 92.82% C 2.74% C++ 1.83%

poisfft's Introduction

The PoisFFT library solves the Poisson equation on a uniform Cartesian grid 
using the Fast Fourier Transform. It calls the library FFTW3 and (if MPI is used) 
also PFFT.

The description is available in article

  Vladimir Fuka: PoisFFT - a free parallel fast Poisson solver, Applied Mathematics and Computation, 2015

  available online: http://dx.doi.org/10.1016/j.amc.2015.03.011 
  preprint: http://arxiv.org/abs/1409.8116

Please cite this article when using the library for your research.


The Poisson equation used is

    \Delta \phi = b
 
 where `\phi` and `b` are functions of 1, 2 or 3 spatial dimensions.


 
 
 
 
For instruction how to use the API after installation see `usage_Fortran.txt`,
`usage_C.txt` and `usage_C++`.



For examples see `testpoisson.f90`, `testpoisson.c` and `testpoisson.cc`.






The installation is done using SConstruct, a Python based build environment, if you do not have it, you must install it first. 

For compiling the library use

    scons

or 

    scons mpi=yes

in the `src` directory.

For compiling of the test programs add `test` after the above command.

If you use other compilers than GCC (gfortran, gcc, g++), add argument comp, i.e.,

    scons comp=intel

or

    scons comp=sun

For other compilers you will have to add the options in the `SConstruct` file.

If you want to disable OpenMP, use

    scons openmp=no

With MPI it is disabled automatically, but can be explicitly enabled by

    scons mpi=yes openmp=yes

for hybrid MPI/OpenMP parallelization.


poisfft's People

Contributors

clarkguilty avatar ladaf avatar

Watchers

 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.