aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/WarpXParticleContainer.H
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Particles/WarpXParticleContainer.H')
-rw-r--r--Source/Particles/WarpXParticleContainer.H7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/Particles/WarpXParticleContainer.H b/Source/Particles/WarpXParticleContainer.H
index e8fded3d9..050060b47 100644
--- a/Source/Particles/WarpXParticleContainer.H
+++ b/Source/Particles/WarpXParticleContainer.H
@@ -11,6 +11,9 @@ struct PIdx
enum { // Particle Attributes stored in amrex::ParticleContainer's struct of array
w = 0, // weight
ux, uy, uz, Ex, Ey, Ez, Bx, By, Bz,
+#ifdef WARPX_RZ
+ theta, // RZ needs all three position components
+#endif
#ifdef WARPX_STORE_OLD_PARTICLE_ATTRIBS
xold, yold, zold, uxold, uyold, uzold,
#endif
@@ -209,11 +212,11 @@ public:
void AddOneParticle (int lev, int grid, int tile,
amrex::Real x, amrex::Real y, amrex::Real z,
- const std::array<amrex::Real,PIdx::nattribs>& attribs);
+ std::array<amrex::Real,PIdx::nattribs>& attribs);
void AddOneParticle (ParticleTileType& particle_tile,
amrex::Real x, amrex::Real y, amrex::Real z,
- const std::array<amrex::Real,PIdx::nattribs>& attribs);
+ std::array<amrex::Real,PIdx::nattribs>& attribs);
void ReadHeader (std::istream& is);