aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-07-26 14:14:14 -0700
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2019-07-26 14:14:14 -0700
commit6f351e2a6162bf57d0201978ff03ef740293e3af (patch)
treec5ea524750071c6e5e9ec26cf2b20d3c2a59f8d0 /Source/Particles/PhysicalParticleContainer.cpp
parent1b67c15a76868332487c203562ab3e824d2f2e65 (diff)
downloadWarpX-6f351e2a6162bf57d0201978ff03ef740293e3af.tar.gz
WarpX-6f351e2a6162bf57d0201978ff03ef740293e3af.tar.zst
WarpX-6f351e2a6162bf57d0201978ff03ef740293e3af.zip
fix RZ. Now both 2D and RZ give same result as before
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r--Source/Particles/PhysicalParticleContainer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp
index 91ad03e9b..6d47373f9 100644
--- a/Source/Particles/PhysicalParticleContainer.cpp
+++ b/Source/Particles/PhysicalParticleContainer.cpp
@@ -1122,9 +1122,9 @@ PhysicalParticleContainer::FieldGather (int lev,
#ifdef WARPX_RZ
warpx_geteb_energy_conserving(
&np,
- xp.dataPtr(),
- yp.dataPtr(),
- zp.dataPtr(),
+ m_xp[thread_num].dataPtr(),
+ m_yp[thread_num].dataPtr(),
+ m_zp[thread_num].dataPtr(),
Exp.dataPtr(),Eyp.dataPtr(),Ezp.dataPtr(),
Bxp.dataPtr(),Byp.dataPtr(),Bzp.dataPtr(),
ixyzmin,