diff options
author | 2022-12-08 13:08:07 -0800 | |
---|---|---|
committer | 2022-12-08 13:08:07 -0800 | |
commit | 202b93c3eafd590773c893ee4cc924899b452a33 (patch) | |
tree | c8182f63d752895515278d510722c6632bd3395d /Source/Particles/WarpXParticleContainer.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/Particles/WarpXParticleContainer.cpp')
-rw-r--r-- | Source/Particles/WarpXParticleContainer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp index 34e25d1a2..e56c94583 100644 --- a/Source/Particles/WarpXParticleContainer.cpp +++ b/Source/Particles/WarpXParticleContainer.cpp @@ -15,13 +15,13 @@ #include "Pusher/GetAndSetPosition.H" #include "Pusher/UpdatePosition.H" #include "ParticleBoundaries_K.H" -#include "Utils/CoarsenMR.H" #include "Utils/TextMsg.H" #include "Utils/WarpXAlgorithmSelection.H" #include "Utils/WarpXConst.H" #include "Utils/WarpXProfilerWrapper.H" #include "WarpX.H" +#include <ablastr/coarsen/average.H> #include <ablastr/utils/Communication.H> #include <AMReX.H> @@ -714,7 +714,7 @@ WarpXParticleContainer::DepositCharge (amrex::Vector<std::unique_ptr<amrex::Mult MultiFab coarsened_fine_data(coarsened_fine_BA, fine_dm, rho[lev+1]->nComp(), ngrow ); coarsened_fine_data.setVal(0.0); - CoarsenMR::Coarsen( coarsened_fine_data, *rho[lev+1], m_gdb->refRatio(lev) ); + ablastr::coarsen::average::Coarsen(coarsened_fine_data, *rho[lev + 1], m_gdb->refRatio(lev) ); ablastr::utils::communication::ParallelAdd(*rho[lev], coarsened_fine_data, 0, 0, rho[lev]->nComp(), amrex::IntVect::TheZeroVector(), |