aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.cpp
diff options
context:
space:
mode:
authorGravatar Axel Huebl <axel.huebl@plasma.ninja> 2022-12-08 13:08:07 -0800
committerGravatar GitHub <noreply@github.com> 2022-12-08 13:08:07 -0800
commit202b93c3eafd590773c893ee4cc924899b452a33 (patch)
treec8182f63d752895515278d510722c6632bd3395d /Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.cpp
parent0afa0b0cb34b9be71a3f23338e21e66d464bc65a (diff)
downloadWarpX-202b93c3eafd590773c893ee4cc924899b452a33.tar.gz
WarpX-202b93c3eafd590773c893ee4cc924899b452a33.tar.zst
WarpX-202b93c3eafd590773c893ee4cc924899b452a33.zip
ABLASTR: Coarsen Functions (#3433)
* ABLASTR: Coarsen Functions Move coarsen functions to ABLASTR. Rename by property of the coarsening function. * Remove unused imports Co-authored-by: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> Co-authored-by: Edoardo Zoni <59625522+EZoni@users.noreply.github.com>
Diffstat (limited to 'Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.cpp')
-rw-r--r--Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.cpp
index 2dac5fb00..f43714a9c 100644
--- a/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.cpp
+++ b/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.cpp
@@ -1,11 +1,12 @@
#include "CellCenterFunctor.H"
-#include "Utils/CoarsenIO.H"
#include "Utils/TextMsg.H"
#ifdef WARPX_DIM_RZ
# include "WarpX.H"
#endif
+#include <ablastr/coarsen/sample.H>
+
#include <AMReX.H>
#include <AMReX_IntVect.H>
#include <AMReX_MultiFab.H>
@@ -35,14 +36,14 @@ CellCenterFunctor::operator()(amrex::MultiFab& mf_dst, int dcomp, const int /*i_
// All modes > 0
amrex::MultiFab::Add(mf_dst_stag, *m_mf_src, ic, 0, 1, m_mf_src->nGrowVect());
}
- CoarsenIO::Coarsen( mf_dst, mf_dst_stag, dcomp, 0, nComp(), 0, m_crse_ratio);
+ ablastr::coarsen::sample::Coarsen( mf_dst, mf_dst_stag, dcomp, 0, nComp(), 0, m_crse_ratio);
} else {
- CoarsenIO::Coarsen( mf_dst, *m_mf_src, dcomp, 0, nComp(), 0, m_crse_ratio);
+ ablastr::coarsen::sample::Coarsen( mf_dst, *m_mf_src, dcomp, 0, nComp(), 0, m_crse_ratio);
}
#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(), mf_dst.nGrowVect(), m_crse_ratio);
+ ablastr::coarsen::sample::Coarsen(mf_dst, *m_mf_src, dcomp, 0, nComp(), mf_dst.nGrowVect(), m_crse_ratio);
amrex::ignore_unused(m_lev, m_convertRZmodes2cartesian);
#endif
}