diff options
author | 2020-08-24 23:14:30 +0200 | |
---|---|---|
committer | 2020-08-24 14:14:30 -0700 | |
commit | bb58c764f9f21f8baac5e2fb1d81fed4983d1242 (patch) | |
tree | 3e1f5914d8f1e2be1168b79509718719745ebb93 /Source/Particles/Pusher | |
parent | 78f9be325d894bbae867aa279efdfd2212690825 (diff) | |
download | WarpX-bb58c764f9f21f8baac5e2fb1d81fed4983d1242.tar.gz WarpX-bb58c764f9f21f8baac5e2fb1d81fed4983d1242.tar.zst WarpX-bb58c764f9f21f8baac5e2fb1d81fed4983d1242.zip |
Fix some warnings (#1239)
This PR fixes the source of several compilation warnings.
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Diffstat (limited to 'Source/Particles/Pusher')
-rw-r--r-- | Source/Particles/Pusher/UpdatePositionPhoton.H | 4 |
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; } |