aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/Pusher/UpdatePositionPhoton.H
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Particles/Pusher/UpdatePositionPhoton.H')
-rw-r--r--Source/Particles/Pusher/UpdatePositionPhoton.H4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Particles/Pusher/UpdatePositionPhoton.H b/Source/Particles/Pusher/UpdatePositionPhoton.H
index 08827e407..4787c67c0 100644
--- a/Source/Particles/Pusher/UpdatePositionPhoton.H
+++ b/Source/Particles/Pusher/UpdatePositionPhoton.H
@@ -12,7 +12,7 @@
#include <AMReX_FArrayBox.H>
#include <AMReX_REAL.H>
-
+#include <AMReX.H>
/**
* \brief Push the position of a photon particle over one timestep,
@@ -31,6 +31,8 @@ void UpdatePositionPhoton(
x += ux * c_over_umod * dt;
#if (defined WARPX_DIM_3D) || (defined WARPX_DIM_RZ) // RZ pushes particles in 3D
y += uy * c_over_umod * dt;
+#else
+ amrex::ignore_unused(y);
#endif
z += uz * c_over_umod * dt;
}