From c394ff331f484fb04d0266f82a0ca41124af6f98 Mon Sep 17 00:00:00 2001 From: Remi Lehe Date: Wed, 22 May 2019 16:11:26 -0700 Subject: Fix compilation error for cylindrical --- Source/Particles/WarpXParticleContainer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Particles/WarpXParticleContainer.cpp') 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 } ); -- cgit v1.2.3