diff options
author | 2019-05-22 16:11:26 -0700 | |
---|---|---|
committer | 2019-05-22 16:11:26 -0700 | |
commit | c394ff331f484fb04d0266f82a0ca41124af6f98 (patch) | |
tree | bbb90cb2601dfbdd50b3b03988ccc2d995c7e7cf /Source/Particles/WarpXParticleContainer.cpp | |
parent | ee75452c760ad7251781a3232d857897fab3083d (diff) | |
download | WarpX-c394ff331f484fb04d0266f82a0ca41124af6f98.tar.gz WarpX-c394ff331f484fb04d0266f82a0ca41124af6f98.tar.zst WarpX-c394ff331f484fb04d0266f82a0ca41124af6f98.zip |
Fix compilation error for cylindrical
Diffstat (limited to '')
-rw-r--r-- | Source/Particles/WarpXParticleContainer.cpp | 4 |
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 } ); |