aboutsummaryrefslogtreecommitdiff
path: root/Docs/source/developers/gnumake/spectral.rst
blob: a5a0e6448f568293d7bd919bad6d9ea90b73f672 (plain) (blame)
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
Building the spectral solver
============================

By default, the code is compiled with a finite-difference (FDTD) Maxwell solver.
In order to run the code with a spectral solver, you need to:

      - Install (or load) an MPI-enabled version of FFTW.
        For instance, for Debian, this can be done with
        ::

           apt-get install libfftw3-dev libfftw3-mpi-dev

      - Set the environment variable ``FFTW_HOME`` to the path for FFTW.
        For instance, for Debian, this is done with
        ::

           export FFTW_HOME=/usr/

      - Set ``USE_PSATD=TRUE`` when compiling:
        ::

           make -j 4 USE_PSATD=TRUE

See :doc:`rzgeometry` for using the spectral solver with USE_RZ. Additional steps are needed.
PSATD is compatible with single precision, but please note that, on CPU, FFTW needs to be compiled with option ``--enable-float``.