Skip to content

Commit

Permalink
Fix index bug in FFTPoissonSolverPeriodic (#1102)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSinn authored Apr 22, 2024
1 parent 9d779ea commit 482e3b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fields/fft_poisson_solver/FFTPoissonSolverPeriodic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ FFTPoissonSolverPeriodic::SolvePoissonEquation (amrex::MultiFab& lhs_mf)
#ifdef AMREX_USE_OMP
#pragma omp parallel if (amrex::Gpu::notInLaunchRegion())
#endif
for ( amrex::MFIter mfi(m_stagingArea, DfltMfiTlng); mfi.isValid(); ++mfi ){
for ( amrex::MFIter mfi(m_tmpSpectralField, DfltMfiTlng); mfi.isValid(); ++mfi ){
// Solve Poisson equation in Fourier space:
// Multiply `tmpSpectralField` by inv_k2
Array2<amrex::GpuComplex<amrex::Real>> tmp_cmplx_arr = m_tmpSpectralField.array(mfi);
Expand Down

0 comments on commit 482e3b6

Please sign in to comment.