8 #ifndef WARPX_SUM_GUARD_CELLS_H_ 9 #define WARPX_SUM_GUARD_CELLS_H_ 11 #include <AMReX_MultiFab.H> 27 const int icomp=0,
const int ncomp=1){
28 #ifdef WARPX_USE_PSATD 30 const amrex::IntVect n_updated_guards = mf.nGrowVect();
33 const amrex::IntVect n_updated_guards = amrex::IntVect::TheZeroVector();
35 mf.SumBoundary(icomp, ncomp, n_updated_guards, period);
55 const amrex::Periodicity& period,
56 const int icomp=0,
const int ncomp=1){
57 #ifdef WARPX_USE_PSATD 59 const amrex::IntVect n_updated_guards = dst.nGrowVect();
62 const amrex::IntVect n_updated_guards = amrex::IntVect::TheZeroVector();
64 src.SumBoundary(0, ncomp, n_updated_guards, period);
65 amrex::Copy( dst, src, 0, icomp, ncomp, n_updated_guards );
68 #endif // WARPX_SUM_GUARD_CELLS_H_ void WarpXSumGuardCells(amrex::MultiFab &mf, const amrex::Periodicity &period, 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:26