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:231
static short electromagnetic_solver_id
Integer that corresponds to the type of Maxwell solver (Yee, CKC, PSATD, ECT)
Definition: WarpX.H:175
IntVect nGrowVect() const noexcept
void setVal(value_type val)
void ParallelAdd(const FabArray< FArrayBox > &fa, const Periodicity &period=Periodicity::NonPeriodic())
AMREX_GPU_HOST_DEVICE static constexpr AMREX_FORCE_INLINE IntVect TheZeroVector() noexcept
void SumBoundary(amrex::MultiFab &mf, int start_comp, int num_comps, amrex::IntVect src_ng, amrex::IntVect dst_ng, bool do_single_precision_comms, const amrex::Periodicity &period)
Definition: Communication.cpp:149
@ PSATD
Definition: WarpXAlgorithmSelection.H:52