From bbff765c6396ea9f69c0fcc0d5966a38b010536a Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Tue, 1 Sep 2020 23:04:19 +0200 Subject: Fix 🩹(almost) all warnings ⚠️ with default configuration in 2D (DIM=2, openMP+MPI, double precision, no advanced solvers, no QED, native output) (#1264) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Depends on #1263 --- Source/Particles/PhysicalParticleContainer.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Source/Particles/PhysicalParticleContainer.cpp') 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 } -- cgit v1.2.3