-
Notifications
You must be signed in to change notification settings - Fork 18
/
README
72 lines (31 loc) · 1.49 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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.