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);
78 #endif // WARPX_SUM_GUARD_CELLS_H_ void ParallelAdd(const FabArray< FArrayBox > &fa, const Periodicity &period=Periodicity::NonPeriodic())
IntVect nGrowVect() const noexcept
void setVal(value_type val)
void SumBoundary(amrex::MultiFab &mf, bool do_single_precision_comms, const amrex::Periodicity &period)
Definition: Communication.cpp:142
static short electromagnetic_solver_id
Integer that corresponds to the type of Maxwell solver (Yee, CKC, PSATD, ECT)
Definition: WarpX.H:161
AMREX_GPU_HOST_DEVICE static constexpr AMREX_FORCE_INLINE IntVect TheZeroVector() noexcept
Definition: WarpXAlgorithmSelection.H:52
static bool do_single_precision_comms
perform field communications in single precision
Definition: WarpX.H:217
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