26#if defined(P3M) or defined(DP3M)
37template <
typename FloatType>
struct fft_data_struct;
44template <
typename FloatType>
46 static_assert(std::is_same_v<FloatType, float> or
47 std::is_same_v<FloatType, double>,
48 "FFTW only implements float and double");
49 std::unique_ptr<fft::fft_data_struct<FloatType>>
fft;
52 int ca_mesh_size = -1;
64 return fft->get_mesh_size();
67 return fft->get_mesh_start();
76 constexpr static int KX = 2;
77 constexpr static int KY = 0;
78 constexpr static int KZ = 1;
Historic FFT backend based on FFTW3.
void backward_fft(FloatType *rs_mesh) override
~FFTBackendLegacy() override
std::array< int, 3u > const & get_mesh_size() const override
std::array< int, 3u > const & get_mesh_start() const override
void init(P3MParameters const ¶ms) override
std::tuple< int, int, int > get_permutations() const override
Index helpers for reciprocal space.
void forward_fft(FloatType *rs_mesh) override
int get_ca_mesh_size() const noexcept override
int get_ks_pnum() const noexcept override
API for the FFT backend of the P3M algorithm.
bool check_complex_residuals
P3MLocalMesh const & local_mesh
This file contains the defaults for ESPResSo.
Common functions for dipolar and charge P3M.
static SteepestDescentParameters params
Currently active steepest descent instance.
Properties of the local mesh.
Structure to hold P3M parameters and some dependent variables.