diff options
author | 2022-12-08 13:08:07 -0800 | |
---|---|---|
committer | 2022-12-08 13:08:07 -0800 | |
commit | 202b93c3eafd590773c893ee4cc924899b452a33 (patch) | |
tree | c8182f63d752895515278d510722c6632bd3395d /Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.cpp | |
parent | 0afa0b0cb34b9be71a3f23338e21e66d464bc65a (diff) | |
download | WarpX-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/PartPerCellFunctor.cpp')
-rw-r--r-- | Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.cpp index dd663cfb3..493c52e2e 100644 --- a/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.cpp +++ b/Source/Diagnostics/ComputeDiagFunctors/PartPerCellFunctor.cpp @@ -2,9 +2,10 @@ #include "Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.H" #include "Particles/MultiParticleContainer.H" -#include "Utils/CoarsenIO.H" #include "WarpX.H" +#include <ablastr/coarsen/sample.H> + #include <AMReX_BLassert.H> #include <AMReX_IntVect.H> #include <AMReX_MultiFab.H> @@ -36,5 +37,5 @@ PartPerCellFunctor::operator()(amrex::MultiFab& mf_dst, const int dcomp, const i // Compute ppc which includes a summation over all species. warpx.GetPartContainer().Increment(ppc_mf, m_lev); // Coarsen and interpolate from ppc_mf to the output diagnostic MultiFab, mf_dst. - CoarsenIO::Coarsen(mf_dst, ppc_mf, dcomp, 0, nComp(), 0, m_crse_ratio); + ablastr::coarsen::sample::Coarsen(mf_dst, ppc_mf, dcomp, 0, nComp(), 0, m_crse_ratio); } |