summaryrefslogtreecommitdiff
path: root/fourier.hpp
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2025-04-05 20:50:12 -0300
committerJaron Kent-Dobias <jaron@kent-dobias.com>2025-04-05 20:50:12 -0300
commitf65b97b96ec4111807222fd95057813a454a2bea (patch)
tree4e5162dca4347a5604ad207fd8cf81fcf48fc2fd /fourier.hpp
parent8328c8294c144e30310c79e15c80a5bf06315bf0 (diff)
downloadcode-f65b97b96ec4111807222fd95057813a454a2bea.tar.gz
code-f65b97b96ec4111807222fd95057813a454a2bea.tar.bz2
code-f65b97b96ec4111807222fd95057813a454a2bea.zip
Enable multithreaded FFTW with openmp
Diffstat (limited to 'fourier.hpp')
-rw-r--r--fourier.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/fourier.hpp b/fourier.hpp
index 406f2f2..1ebb7bc 100644
--- a/fourier.hpp
+++ b/fourier.hpp
@@ -5,6 +5,10 @@
#include <vector>
#include <tuple>
+#ifndef FFTW_THREADS
+#define FFTW_THREADS 1
+#endif
+
using Real = double;
using Complex = std::complex<Real>;
using namespace std::complex_literals;