diff options
author | 2020-09-01 23:04:19 +0200 | |
---|---|---|
committer | 2020-09-01 14:04:19 -0700 | |
commit | bbff765c6396ea9f69c0fcc0d5966a38b010536a (patch) | |
tree | 50af02dbe57f7f6bb9e0be0b3ac7602524b41ee8 /Source/Particles/WarpXParticleContainer.cpp | |
parent | 61cc460671ac9e9e99280b2452dc9ada901a039d (diff) | |
download | WarpX-bbff765c6396ea9f69c0fcc0d5966a38b010536a.tar.gz WarpX-bbff765c6396ea9f69c0fcc0d5966a38b010536a.tar.zst WarpX-bbff765c6396ea9f69c0fcc0d5966a38b010536a.zip |
Fix 🩹(almost) all warnings ⚠️ with default configuration in 2D (DIM=2, openMP+MPI, double precision, no advanced solvers, no QED, native output) (#1264)
Depends on #1263
Diffstat (limited to 'Source/Particles/WarpXParticleContainer.cpp')
-rw-r--r-- | Source/Particles/WarpXParticleContainer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp index a3f1ff221..ecdd3eb27 100644 --- a/Source/Particles/WarpXParticleContainer.cpp +++ b/Source/Particles/WarpXParticleContainer.cpp @@ -147,6 +147,7 @@ WarpXParticleContainer::AddNParticles (int /*lev*/, p.pos(1) = y[i]; p.pos(2) = z[i]; #elif (AMREX_SPACEDIM == 2) + amrex::ignore_unused(y); #ifdef WARPX_DIM_RZ theta[i-ibegin] = std::atan2(y[i], x[i]); p.pos(0) = std::sqrt(x[i]*x[i] + y[i]*y[i]); |