aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.cpp')
-rw-r--r--Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.cpp
index a821861bb..8925f9ee2 100644
--- a/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.cpp
+++ b/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.cpp
@@ -9,7 +9,7 @@ CellCenterFunctor::CellCenterFunctor(amrex::MultiFab const * mf_src, int lev,
{}
void
-CellCenterFunctor::operator()(amrex::MultiFab& mf_dst, int dcomp) const
+CellCenterFunctor::operator()(amrex::MultiFab& mf_dst, int dcomp, const int /*i_buffer*/) const
{
#ifdef WARPX_DIM_RZ
if (m_convertRZmodes2cartesian) {
@@ -33,6 +33,6 @@ CellCenterFunctor::operator()(amrex::MultiFab& mf_dst, int dcomp) const
#else
// In cartesian geometry, coarsen and interpolate from simulation MultiFab, m_mf_src,
// to output diagnostic MultiFab, mf_dst.
- CoarsenIO::Coarsen( mf_dst, *m_mf_src, dcomp, 0, nComp(), 0, m_crse_ratio);
+ CoarsenIO::Coarsen( mf_dst, *m_mf_src, dcomp, 0, nComp(), mf_dst.nGrow(0), m_crse_ratio);
#endif
}