aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/WarpXParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Dave Grote <grote1@llnl.gov> 2019-08-01 17:12:29 -0700
committerGravatar Dave Grote <grote1@llnl.gov> 2019-08-01 17:12:29 -0700
commitf5207b1bb5bc9dd9b0f2b7d4170bcf67fc14c8a2 (patch)
tree5ef3865a6e8e56f851d2b914dc4f9a882ba00907 /Source/Particles/WarpXParticleContainer.cpp
parentb536c571ae8185117b3249293967dd37d07db6b2 (diff)
downloadWarpX-f5207b1bb5bc9dd9b0f2b7d4170bcf67fc14c8a2.tar.gz
WarpX-f5207b1bb5bc9dd9b0f2b7d4170bcf67fc14c8a2.tar.zst
WarpX-f5207b1bb5bc9dd9b0f2b7d4170bcf67fc14c8a2.zip
Moved ApplyInverseVolumeScalingToCurrentDensity to WarpX and is called after all particles are deposited.
Diffstat (limited to 'Source/Particles/WarpXParticleContainer.cpp')
-rw-r--r--Source/Particles/WarpXParticleContainer.cpp8
1 files changed, 1 insertions, 7 deletions
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<Real, 3>& xyzmin = WarpX::LowerCorner(tilebox, depos_lev);;
+ const std::array<Real, 3>& 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