aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/WarpXParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Remi Lehe <remi.lehe@normalesup.org> 2019-05-22 15:23:06 -0700
committerGravatar Remi Lehe <remi.lehe@normalesup.org> 2019-05-22 15:23:06 -0700
commit8ccd9bb67fa5fe100e59d999f5698d738e75d93c (patch)
tree69c1e833067e341180818832feb3998e33d3d28a /Source/Particles/WarpXParticleContainer.cpp
parentb78301705e3802e164b32bd09ededc9139baabda (diff)
downloadWarpX-8ccd9bb67fa5fe100e59d999f5698d738e75d93c.tar.gz
WarpX-8ccd9bb67fa5fe100e59d999f5698d738e75d93c.tar.zst
WarpX-8ccd9bb67fa5fe100e59d999f5698d738e75d93c.zip
Implement style comments
Diffstat (limited to '')
-rw-r--r--Source/Particles/WarpXParticleContainer.cpp8
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
}