Skip to content

Commit

Permalink
Fix: ABLASTR FFT Poisson Solver (#4821)
Browse files Browse the repository at this point in the history
Small compile issues seen in ImpactX.
  • Loading branch information
ax3l authored Apr 4, 2024
1 parent 30ed0fb commit f013b1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/ablastr/fields/PoissonSolver.H
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <ablastr/warn_manager/WarnManager.H>
#include <ablastr/math/fft/AnyFFT.H>
#include <ablastr/fields/Interpolate.H>
#include <ablastr/profiler/ProfilerWrapper.H>

#if defined(WARPX_USE_PSATD) && defined(WARPX_DIM_3D)
#include <ablastr/fields/IntegratedGreenFunctionSolver.H>
Expand Down Expand Up @@ -178,7 +179,7 @@ computePhi (amrex::Vector<amrex::MultiFab*> const & rho,
// Use the Multigrid (MLMG) solver if selected or on refined patches
// but first scale rho appropriately
using namespace ablastr::constant::SI;
rho[lev]->mult(-1._rt/PhysConst::ep0); // TODO: when do we "un-multiply" this? We need to document this side-effect!
rho[lev]->mult(-1._rt/ep0); // TODO: when do we "un-multiply" this? We need to document this side-effect!

#if !(defined(AMREX_USE_EB) || defined(WARPX_DIM_RZ))
// Determine whether to use semi-coarsening
Expand Down

0 comments on commit f013b1f

Please sign in to comment.