Skip to content

Commit

Permalink
Fix intel warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Oct 30, 2024
1 parent 3333741 commit 8d30eaf
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Src/FFT/AMReX_FFT_Helper.H
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,17 @@
# endif
# include <hip/hip_complex.h>
#elif defined(AMREX_USE_SYCL)
# include <oneapi/mkl/dfti.hpp>
# if __has_include(<oneapi/mkl/dft.hpp>) // oneAPI 2025.0
# include <oneapi/mkl/dft.hpp>
#else
# include <oneapi/mkl/dfti.hpp>
# endif
#else
# include <fftw3.h>
#endif

#include <algorithm>
#include <complex>
#include <memory>
#include <utility>
#include <variant>
Expand Down
11 changes: 11 additions & 0 deletions Src/FFT/AMReX_FFT_Poisson.H
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ public:
: m_geom(geom), m_bc(bc), m_r2x(geom.Domain(),bc)
{}

template <typename FA=MF, std::enable_if_t<IsFabArray_v<FA>,int> = 0>
explicit Poisson (Geometry const& geom)
: m_geom(geom),
m_bc{AMREX_D_DECL(std::make_pair(Boundary::periodic,Boundary::periodic),
std::make_pair(Boundary::periodic,Boundary::periodic),
std::make_pair(Boundary::periodic,Boundary::periodic))},
m_r2x(geom.Domain(),m_bc)
{
AMREX_ALWAYS_ASSERT(m_geom.isAllPeriodic());
}

void solve (MF& soln, MF const& rhs);

private:
Expand Down
2 changes: 1 addition & 1 deletion Tests/FFT/Poisson/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ int main (int argc, char* argv[])
// We know that the sum of our rhs is zero for non-Dirichlet
// cases. Otherwise, we should shift rhs so that its sum is zero.

FFT::Poisson fft_poisson(geom, fft_bc);
FFT::Poisson fft_poisson(geom); //, fft_bc);
fft_poisson.solve(soln, rhs);

MultiFab phi(soln.boxArray(), soln.DistributionMap(), 1, 1);
Expand Down

0 comments on commit 8d30eaf

Please sign in to comment.