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/PhysicalParticleContainer.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/PhysicalParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhysicalParticleContainer.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index 8d47c14db..e3aaa6002 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -668,6 +668,9 @@ PhysicalParticleContainer::AddPlasma (int lev, RealBox part_realbox) pcounts[index] = num_ppc; } } +#if (AMREX_SPACEDIM != 3) + amrex::ignore_unused(k); +#endif }); Gpu::exclusive_scan(counts.begin(), counts.end(), offset.begin()); @@ -774,6 +777,7 @@ PhysicalParticleContainer::AddPlasma (int lev, RealBox part_realbox) continue; } #else + amrex::ignore_unused(k); if (!tile_realbox.contains(XDim3{pos.x,pos.z,0.0_rt})) { p.id() = -1; continue; @@ -1229,6 +1233,10 @@ PhysicalParticleContainer::applyNCIFilter ( bzeli = filtered_Bz.elixir(); nci_godfrey_filter_exeybz[lev]->ApplyStencil(filtered_Bz, Bz, filtered_Bz.box()); bz_ptr = &filtered_Bz; +#else + amrex::ignore_unused(eyeli, bxeli, bzeli, + filtered_Ey, filtered_Bx, filtered_Bz, + Ey, Bx, Bz, ey_ptr, bx_ptr, bz_ptr); #endif } |