diff options
Diffstat (limited to 'Source/Parallelization/WarpXSumGuardCells.H')
-rw-r--r-- | Source/Parallelization/WarpXSumGuardCells.H | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Parallelization/WarpXSumGuardCells.H b/Source/Parallelization/WarpXSumGuardCells.H index 78738c130..c94e8a0fb 100644 --- a/Source/Parallelization/WarpXSumGuardCells.H +++ b/Source/Parallelization/WarpXSumGuardCells.H @@ -36,7 +36,7 @@ WarpXSumGuardCells(amrex::MultiFab& mf, const amrex::Periodicity& period, n_updated_guards = mf.nGrowVect(); else // Update only the valid cells n_updated_guards = amrex::IntVect::TheZeroVector(); - mf.SumBoundary(icomp, ncomp, src_ngrow, n_updated_guards, period); + WarpXCommUtil::SumBoundary(mf, icomp, ncomp, src_ngrow, n_updated_guards, period); } /** \brief Sum the values of `src` where the different boxes overlap @@ -69,6 +69,7 @@ WarpXSumGuardCells(amrex::MultiFab& dst, amrex::MultiFab& src, n_updated_guards = amrex::IntVect::TheZeroVector(); dst.setVal(0., icomp, ncomp, n_updated_guards); +// WarpXCommUtil::ParallelAdd(dst, src, 0, icomp, ncomp, src_ngrow, n_updated_guards, period); dst.ParallelAdd(src, 0, icomp, ncomp, src_ngrow, n_updated_guards, period); } |