aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/WarpXParticleContainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Particles/WarpXParticleContainer.cpp')
-rw-r--r--Source/Particles/WarpXParticleContainer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp
index fa7fda233..c7ffe956b 100644
--- a/Source/Particles/WarpXParticleContainer.cpp
+++ b/Source/Particles/WarpXParticleContainer.cpp
@@ -1066,9 +1066,9 @@ WarpXParticleContainer::PushX (int lev, Real dt)
SetPosition( p, x, y, z ); // Update the object p
#else
// For WARPX_RZ, the particles are still pushed in 3D Cartesian
- GetCartesianPositionFromCylindrical( x, y, z, p, theta );
+ GetCartesianPositionFromCylindrical( x, y, z, p, theta[i] );
UpdatePosition( x, y, z, ux[i], uy[i], uz[i], dt);
- SetCylindricalPositionFromCartesian( p, theta, x, y, z );
+ SetCylindricalPositionFromCartesian( p, theta[i], x, y, z );
#endif
}
);