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