8 #ifndef WARPX_SUM_GUARD_CELLS_H_
9 #define WARPX_SUM_GUARD_CELLS_H_
32 const int icomp=0,
const int ncomp=1)
63 const int icomp=0,
const int ncomp=1)
73 dst.
setVal(0., icomp, ncomp, n_updated_guards);
75 dst.
ParallelAdd(src, 0, icomp, ncomp, src_ngrow, n_updated_guards, period);
void WarpXSumGuardCells(amrex::MultiFab &mf, const amrex::Periodicity &period, const amrex::IntVect &src_ngrow, const int icomp=0, const int ncomp=1)
Sum the values of mf, where the different boxes overlap (i.e. in the guard cells)
Definition: WarpXSumGuardCells.H:30
static bool do_single_precision_comms
perform field communications in single precision
Definition: WarpX.H:358
static short electromagnetic_solver_id
Integer that corresponds to the type of Maxwell solver (Yee, CKC, PSATD, ECT)
Definition: WarpX.H:288
IntVect nGrowVect() const noexcept
void ParallelAdd(const FabArray< FAB > &src, const Periodicity &period=Periodicity::NonPeriodic())
void setVal(value_type val)
AMREX_GPU_HOST_DEVICE static AMREX_FORCE_INLINE constexpr IntVectND< dim > TheZeroVector() noexcept
void SumBoundary(amrex::MultiFab &mf, bool do_single_precision_comms, const amrex::Periodicity &period)
Definition: Communication.cpp:142
@ PSATD
Definition: WarpXAlgorithmSelection.H:66