aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/WarpXParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Dave Grote <grote1@llnl.gov> 2019-08-08 17:57:58 -0700
committerGravatar Dave Grote <grote1@llnl.gov> 2019-08-08 17:57:58 -0700
commit00cd6d4cee3c5f01b5e68b080019fcd85dc73714 (patch)
tree702c027f3f6494d370a873d9c0265271a3da2ca4 /Source/Particles/WarpXParticleContainer.cpp
parentc45bde5edf520cd808a620e243e426ace445441d (diff)
downloadWarpX-00cd6d4cee3c5f01b5e68b080019fcd85dc73714.tar.gz
WarpX-00cd6d4cee3c5f01b5e68b080019fcd85dc73714.tar.zst
WarpX-00cd6d4cee3c5f01b5e68b080019fcd85dc73714.zip
In GetChargeDensity, added call to ApplyInverseVolumeScalingToChargeDensity
Diffstat (limited to 'Source/Particles/WarpXParticleContainer.cpp')
-rw-r--r--Source/Particles/WarpXParticleContainer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp
index 4ccddaedf..c4e670bf8 100644
--- a/Source/Particles/WarpXParticleContainer.cpp
+++ b/Source/Particles/WarpXParticleContainer.cpp
@@ -735,6 +735,10 @@ WarpXParticleContainer::GetChargeDensity (int lev, bool local)
}
}
+#ifdef WARPX_DIM_RZ
+ WarpX::GetInstance().ApplyInverseVolumeScalingToChargeDensity(rho.get(), lev);
+#endif
+
if (!local) rho->SumBoundary(gm.periodicity());
return rho;