diff options
author | 2020-05-11 08:01:49 -0700 | |
---|---|---|
committer | 2020-05-11 08:01:49 -0700 | |
commit | e2eb322f5856994102237c8903781a5b3f77dd58 (patch) | |
tree | 2744f0ae6735ce2c427f344f72a90724c4f7f8af /Source/Particles/WarpXParticleContainer.cpp | |
parent | ec3c2aab43130d96c599e38474e3467b47a4bfcd (diff) | |
download | WarpX-e2eb322f5856994102237c8903781a5b3f77dd58.tar.gz WarpX-e2eb322f5856994102237c8903781a5b3f77dd58.tar.zst WarpX-e2eb322f5856994102237c8903781a5b3f77dd58.zip |
Generalize coarsening for MR (#945)
* Move interpolation functions for MR to new folder
* Preparatory clean-up of old namespace Average for future MR functions
* Add interpolation for MR in new namespace Coarsen
* Change file names Average.H/.cpp to Coarsen.H/.cpp
* Remove Source/Parallelization/WarpXComm.H (not necessary anymore)
* Coarsening for IO and MR in separate files
* Clean up IO and MR Coarsen namespaces
* Remove old interpolation functions (charge and current)
* Void commit: trigger Travis CI build
* Fix GPU build
* Void commit: trigger Travis CI build
* Add Python script to test interpolation points/weights in 1D
* Move using-directives inside namespaces
* Add Doxygen documentation and comments
* Minor style changes
* Improve new Python script
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 49c8264e9..27d042f74 100644 --- a/Source/Particles/WarpXParticleContainer.cpp +++ b/Source/Particles/WarpXParticleContainer.cpp @@ -11,7 +11,7 @@ #include "WarpXParticleContainer.H" #include "WarpX.H" #include "Utils/WarpXAlgorithmSelection.H" -#include "Parallelization/WarpXComm.H" +#include "Utils/CoarsenMR.H" // Import low-level single-particle kernels #include "Pusher/GetAndSetPosition.H" #include "Pusher/UpdatePosition.H" @@ -556,7 +556,7 @@ WarpXParticleContainer::DepositCharge (amrex::Vector<std::unique_ptr<amrex::Mult int const refinement_ratio = 2; - interpolateDensityFineToCoarse( *rho[lev+1], coarsened_fine_data, refinement_ratio ); + CoarsenMR::Coarsen( coarsened_fine_data, *rho[lev+1], IntVect(refinement_ratio) ); rho[lev]->ParallelAdd( coarsened_fine_data, m_gdb->Geom(lev).periodicity() ); } } |