aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/WarpXParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Dave Grote <grote1@llnl.gov> 2019-09-24 14:13:52 -0700
committerGravatar Dave Grote <grote1@llnl.gov> 2019-09-24 14:13:52 -0700
commit8ef7a375061a44858463f2a091b9948d6cb00762 (patch)
tree52065786a5007ada76f14bdfd7ef1f37fd925a1a /Source/Particles/WarpXParticleContainer.cpp
parentbfc9f006c6861d8a4e52ed15687ee838fbd5fd0d (diff)
downloadWarpX-8ef7a375061a44858463f2a091b9948d6cb00762.tar.gz
WarpX-8ef7a375061a44858463f2a091b9948d6cb00762.tar.zst
WarpX-8ef7a375061a44858463f2a091b9948d6cb00762.zip
Fixed bug in AddNParticles with RZ
Diffstat (limited to 'Source/Particles/WarpXParticleContainer.cpp')
-rw-r--r--Source/Particles/WarpXParticleContainer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp
index 176c147da..4a8684a6a 100644
--- a/Source/Particles/WarpXParticleContainer.cpp
+++ b/Source/Particles/WarpXParticleContainer.cpp
@@ -253,7 +253,7 @@ WarpXParticleContainer::AddNParticles (int lev,
{
#ifdef WARPX_DIM_RZ
if (comp == PIdx::theta) {
- particle_tile.push_back_real(comp, theta.front(), theta.back());
+ particle_tile.push_back_real(comp, theta.data(), theta.data() + np);
}
else {
particle_tile.push_back_real(comp, np, 0.0);