aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/WarpXParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-07-08 08:27:44 -0700
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2019-07-08 08:27:44 -0700
commit71b57a2e5617fa81e52171906abaaba9b42723cb (patch)
treece3e06f5e160e29072d294c55f6b73a614271a27 /Source/Particles/WarpXParticleContainer.cpp
parenta9dde5192caae19bc4198b4ae404c7015c104cf5 (diff)
downloadWarpX-71b57a2e5617fa81e52171906abaaba9b42723cb.tar.gz
WarpX-71b57a2e5617fa81e52171906abaaba9b42723cb.tar.zst
WarpX-71b57a2e5617fa81e52171906abaaba9b42723cb.zip
add comments
Diffstat (limited to '')
-rw-r--r--Source/Particles/WarpXParticleContainer.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp
index a02c9cfcd..20d4049a2 100644
--- a/Source/Particles/WarpXParticleContainer.cpp
+++ b/Source/Particles/WarpXParticleContainer.cpp
@@ -316,7 +316,9 @@ WarpXParticleContainer::DepositCurrent(WarpXParIter& pti,
BL_PROFILE_VAR_NS("PICSAR::CurrentDeposition", blp_pxr_cd);
BL_PROFILE_VAR_NS("PPC::Evolve::Accumulate", blp_accumulate);
- // Get tile box where current is deposited
+ // Get tile box where current is deposited.
+ // The tile box is different when depositing in the buffers (depos_lev<lev)
+ // or when depositing inside the level (depos_lev=lev)
Box tilebox;
if (lev == depos_lev) {
tilebox = pti.tilebox();
@@ -391,6 +393,7 @@ WarpXParticleContainer::DepositCurrent(WarpXParIter& pti,
&lvect,&WarpX::current_deposition_algo);
#ifdef WARPX_RZ
+ // Rescale current in r-z mode
warpx_current_deposition_rz_volume_scaling(
jx_ptr, &ngJ, jxntot.getVect(),
jy_ptr, &ngJ, jyntot.getVect(),