aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/WarpXParticleContainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Particles/WarpXParticleContainer.cpp')
-rw-r--r--Source/Particles/WarpXParticleContainer.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp
index 14820b43d..81c15419e 100644
--- a/Source/Particles/WarpXParticleContainer.cpp
+++ b/Source/Particles/WarpXParticleContainer.cpp
@@ -1100,8 +1100,11 @@ WarpXParticleContainer::ApplyBoundaryConditions (){
#ifndef WARPX_DIM_1D_Z
x, xmin, xmax,
#endif
-#ifdef WARPX_DIM_3D
- y, ymin, ymax,
+#if (defined WARPX_DIM_3D) || (defined WARPX_DIM_RZ)
+ y,
+#endif
+#if (defined WARPX_DIM_3D)
+ ymin, ymax,
#endif
z, zmin, zmax,
ux[i], uy[i], uz[i], particle_lost,