diff options
author | 2019-05-22 15:23:06 -0700 | |
---|---|---|
committer | 2019-05-22 15:23:06 -0700 | |
commit | 8ccd9bb67fa5fe100e59d999f5698d738e75d93c (patch) | |
tree | 69c1e833067e341180818832feb3998e33d3d28a /Source/Particles/WarpXParticleContainer.cpp | |
parent | b78301705e3802e164b32bd09ededc9139baabda (diff) | |
download | WarpX-8ccd9bb67fa5fe100e59d999f5698d738e75d93c.tar.gz WarpX-8ccd9bb67fa5fe100e59d999f5698d738e75d93c.tar.zst WarpX-8ccd9bb67fa5fe100e59d999f5698d738e75d93c.zip |
Implement style comments
Diffstat (limited to '')
-rw-r--r-- | Source/Particles/WarpXParticleContainer.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp index e04d6aa69..fa7fda233 100644 --- a/Source/Particles/WarpXParticleContainer.cpp +++ b/Source/Particles/WarpXParticleContainer.cpp @@ -1062,14 +1062,12 @@ WarpXParticleContainer::PushX (int lev, Real dt) Real x, y, z; // Temporary variables #ifndef WARPX_RZ GetPosition( x, y, z, p ); // Initialize x, y, z -#else - GetCartesianPositionFromCylindrical( x, y, z, p, theta ); -#endif - // Even for RZ, the particles are pushed in 3D Cartesian UpdatePosition( x, y, z, ux[i], uy[i], uz[i], dt); -#ifndef WARPX_RZ 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 ); + UpdatePosition( x, y, z, ux[i], uy[i], uz[i], dt); SetCylindricalPositionFromCartesian( p, theta, x, y, z ); #endif } |