diff options
author | 2019-04-30 15:09:35 -0700 | |
---|---|---|
committer | 2019-04-30 15:09:35 -0700 | |
commit | 3eee555b63dc1fba09be22724aa675c1b7896b5d (patch) | |
tree | 9189adf183f00fceb270af1962670e374fa3e24c /Source/FieldSolver/WarpXFFT.cpp | |
parent | c046858a1cad4afc62d6fc763faa083cfb6e1309 (diff) | |
parent | bb1289f3879155244372f791d6854107150f4266 (diff) | |
download | WarpX-3eee555b63dc1fba09be22724aa675c1b7896b5d.tar.gz WarpX-3eee555b63dc1fba09be22724aa675c1b7896b5d.tar.zst WarpX-3eee555b63dc1fba09be22724aa675c1b7896b5d.zip |
Merge branch 'dev' of github.com:ECP-WarpX/WarpX into dev
Diffstat (limited to 'Source/FieldSolver/WarpXFFT.cpp')
-rw-r--r-- | Source/FieldSolver/WarpXFFT.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/FieldSolver/WarpXFFT.cpp b/Source/FieldSolver/WarpXFFT.cpp index 4bccc956b..1cf5460f2 100644 --- a/Source/FieldSolver/WarpXFFT.cpp +++ b/Source/FieldSolver/WarpXFFT.cpp @@ -130,7 +130,11 @@ WarpX::AllocLevelDataFFT (int lev) // Allocate and initialize objects for the spectral solver // (all use the same distribution mapping) std::array<Real,3> dx = CellSize(lev); - RealVect dx_vect = RealVect( AMREX_D_DECL(dx[0], dx[1], dx[2]) ); +#if (AMREX_SPACEDIM == 3) + RealVect dx_vect(dx[0], dx[1], dx[2]); +#elif (AMREX_SPACEDIM == 2) + RealVect dx_vect(dx[0], dx[2]); +#endif spectral_solver_fp[lev].reset( new SpectralSolver( ba_fp_fft, dm_fp_fft, nox_fft, noy_fft, noz_fft, do_nodal, dx_vect, dt[lev] ) ); } |