aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver
diff options
context:
space:
mode:
authorGravatar Axel Huebl <axel.huebl@plasma.ninja> 2020-12-07 10:46:19 -0800
committerGravatar GitHub <noreply@github.com> 2020-12-07 10:46:19 -0800
commita3241fd707803264674369a96e91f0aca87c3b78 (patch)
treeebfbe244aee91b8ff8043baa27d399cf67200fb7 /Source/FieldSolver/SpectralSolver
parent1f8ab0e625f27e9201b0da9dcfbab52c30112089 (diff)
downloadWarpX-a3241fd707803264674369a96e91f0aca87c3b78.tar.gz
WarpX-a3241fd707803264674369a96e91f0aca87c3b78.tar.zst
WarpX-a3241fd707803264674369a96e91f0aca87c3b78.zip
AnyFFT: `AMReX_Config.H` (#1553)
We reduce the number of command line arguments passed in the AMReX build systems by placing defines in an `AMReX_Config.H` file that is configured at AMReX build time. Files like `AMReX.H` will pull it in as well. In the case of `AnyFFT.H`, we need to make sure this is included before we check the preprocessor defines.
Diffstat (limited to 'Source/FieldSolver/SpectralSolver')
-rw-r--r--Source/FieldSolver/SpectralSolver/AnyFFT.H2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/FieldSolver/SpectralSolver/AnyFFT.H b/Source/FieldSolver/SpectralSolver/AnyFFT.H
index 1a551c167..6ba77e13b 100644
--- a/Source/FieldSolver/SpectralSolver/AnyFFT.H
+++ b/Source/FieldSolver/SpectralSolver/AnyFFT.H
@@ -8,6 +8,8 @@
#ifndef ANYFFT_H_
#define ANYFFT_H_
+#include <AMReX_Config.H>
+
#if defined(AMREX_USE_CUDA)
# include <cufft.h>
#elif defined(AMREX_USE_HIP)