From f5207b1bb5bc9dd9b0f2b7d4170bcf67fc14c8a2 Mon Sep 17 00:00:00 2001 From: Dave Grote Date: Thu, 1 Aug 2019 17:12:29 -0700 Subject: Moved ApplyInverseVolumeScalingToCurrentDensity to WarpX and is called after all particles are deposited. --- Source/Particles/WarpXParticleContainer.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'Source/Particles/WarpXParticleContainer.cpp') diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp index 787c0e397..0e76353a4 100644 --- a/Source/Particles/WarpXParticleContainer.cpp +++ b/Source/Particles/WarpXParticleContainer.cpp @@ -504,7 +504,7 @@ WarpXParticleContainer::DepositCurrent(WarpXParIter& pti, // Lower corner of tile box physical domain // Note that this includes guard cells since it is after tilebox.ngrow - const std::array& xyzmin = WarpX::LowerCorner(tilebox, depos_lev);; + const std::array& xyzmin = WarpX::LowerCorner(tilebox, depos_lev); // xyzmin is built on pti.tilebox(), so it does // not include staggering, so the stagger_shift has to be done by hand. // Alternatively, we could define xyzminx from tbx (and the same for 3 @@ -548,12 +548,6 @@ WarpXParticleContainer::DepositCurrent(WarpXParIter& pti, } } -#ifdef WARPX_DIM_RZ - ApplyInverseVolumeScalingToCurrentDensity(jx_arr, jy_arr, jz_arr, - tbx, tby, tbz, - xyzmin[0], lo.x, dx[0], ngJ); -#endif - #ifndef AMREX_USE_GPU BL_PROFILE_VAR_START(blp_accumulate); // CPU, tiling: atomicAdd local_jx into jx -- cgit v1.2.3