28 #ifndef OPENPSTD_WISDOMCACHE_H 29 #define OPENPSTD_WISDOMCACHE_H 37 #include <Eigen/Dense> 56 Eigen::ArrayXf wave_numbers;
57 Eigen::ArrayXcf complex_factors;
58 Eigen::ArrayXcf pressure_deriv_factors;
59 Eigen::ArrayXcf velocity_deriv_factors;
92 std::map<int, Discretization> computed_discretization;
93 std::map<std::string, Planset_FFTW> cached_fftw_plans;
110 Planset_FFTW create_fftw_planset(
int fft_length,
int fft_batch_size);
119 int match_number(
int n);
122 std::ostream &operator<<(std::ostream &str,
WisdomCache const &v);
126 #endif //OPENPSTD_WISDOMCACHE_H This is the general namespace of the OpenPSTD application.
Definition: Boundary.cpp:33
Storage of the accumulated wisdom in the simulation.
Definition: WisdomCache.h:49
Planset_FFTW get_fftw_planset(int fft_length, int fft_batch_size)
Obtain an FFTW plan for the given fft length and batch size.
Definition: WisdomCache.cpp:77
Discretization get_discretization(float dx, int N)
Obtain the discretization for the given grid size and number of grid points.
Definition: WisdomCache.cpp:39
WisdomCache()
Initializer for the cache.
Definition: WisdomCache.cpp:36
Storage of the plans used in the Fast Fourier Transform.
Definition: WisdomCache.h:65
Storage of the wave number discretizations.
Definition: WisdomCache.h:55