diff options
author | 2020-01-29 12:31:25 -0800 | |
---|---|---|
committer | 2020-01-29 12:31:25 -0800 | |
commit | 068a51be4e588ac8a7e3f32d9c85dab1fb276686 (patch) | |
tree | 49267fbcfdc08203d10bb927aa832e7829000497 /Source/Particles/WarpXParticleContainer.cpp | |
parent | 2ef268b10a924644d10996daa069befea843879f (diff) | |
download | WarpX-068a51be4e588ac8a7e3f32d9c85dab1fb276686.tar.gz WarpX-068a51be4e588ac8a7e3f32d9c85dab1fb276686.tar.zst WarpX-068a51be4e588ac8a7e3f32d9c85dab1fb276686.zip |
I believe we can resuse the GetPosition and SetPosition functors here, even with RZ
Diffstat (limited to 'Source/Particles/WarpXParticleContainer.cpp')
-rw-r--r-- | Source/Particles/WarpXParticleContainer.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp index 33fb98d0e..581565a5f 100644 --- a/Source/Particles/WarpXParticleContainer.cpp +++ b/Source/Particles/WarpXParticleContainer.cpp @@ -750,17 +750,9 @@ WarpXParticleContainer::PushX (int lev, amrex::Real dt) amrex::ParallelFor( pti.numParticles(), [=] AMREX_GPU_DEVICE (long i) { ParticleReal x, y, z; -#ifndef WARPX_DIM_RZ get_position(i, x, y, z); UpdatePosition(x, y, z, ux[i], uy[i], uz[i], dt); set_position(i, x, y, z); -#else - // For WARPX_DIM_RZ, the particles are still pushed in 3D Cartesian - ParticleType& p = pstruct[i]; // Particle object that gets updated - GetCartesianPositionFromCylindrical( x, y, z, p, theta[i] ); - UpdatePosition( x, y, z, ux[i], uy[i], uz[i], dt); - SetCylindricalPositionFromCartesian( p, theta[i], x, y, z ); -#endif } ); |