8 #ifndef WARPX_SUM_GUARD_CELLS_H_ 9 #define WARPX_SUM_GUARD_CELLS_H_ 13 #include <AMReX_MultiFab.H> 29 const amrex::IntVect& src_ngrow,
30 const int icomp=0,
const int ncomp=1)
32 amrex::IntVect n_updated_guards;
36 n_updated_guards = mf.nGrowVect();
38 n_updated_guards = amrex::IntVect::TheZeroVector();
39 mf.SumBoundary(icomp, ncomp, src_ngrow, n_updated_guards, period);
59 const amrex::Periodicity& period,
60 const amrex::IntVect& src_ngrow,
61 const int icomp=0,
const int ncomp=1)
63 amrex::IntVect n_updated_guards;
67 n_updated_guards = dst.nGrowVect();
69 n_updated_guards = amrex::IntVect::TheZeroVector();
71 dst.setVal(0., icomp, ncomp, n_updated_guards);
72 dst.ParallelAdd(src, 0, icomp, ncomp, src_ngrow, n_updated_guards, period);
75 #endif // WARPX_SUM_GUARD_CELLS_H_ Definition: WarpXAlgorithmSelection.H:43
static int maxwell_solver_id
Definition: WarpX.H:144
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:28