aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/WarpXParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Axel Huebl <axel.huebl@plasma.ninja> 2020-02-27 14:30:03 -0800
committerGravatar GitHub <noreply@github.com> 2020-02-27 14:30:03 -0800
commit4d961b7eb3c7a75947eac0343f473167273d18eb (patch)
tree0fb7df207ed3b7b23ecc04061f5ea155cdf84e3e /Source/Particles/WarpXParticleContainer.cpp
parent39e33128cd32338d20a2e7fa7287e44c64c8699c (diff)
downloadWarpX-4d961b7eb3c7a75947eac0343f473167273d18eb.tar.gz
WarpX-4d961b7eb3c7a75947eac0343f473167273d18eb.tar.zst
WarpX-4d961b7eb3c7a75947eac0343f473167273d18eb.zip
Comment/Remove Unused Parameters (#749)
Use the `clang-tidy` pass `misc-unused-parameters` to remove unused parameter warnings. https://clang.llvm.org/extra/clang-tidy/checks/misc-unused-parameters.html) Committed as generic user so git does not credit the many lines to me: ```bash GIT_AUTHOR_NAME="Tools" GIT_AUTHOR_EMAIL="warpx@lbl.gov" \ git commit ```
Diffstat (limited to 'Source/Particles/WarpXParticleContainer.cpp')
-rw-r--r--Source/Particles/WarpXParticleContainer.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp
index d249e3d6b..5aabb1919 100644
--- a/Source/Particles/WarpXParticleContainer.cpp
+++ b/Source/Particles/WarpXParticleContainer.cpp
@@ -97,12 +97,12 @@ WarpXParticleContainer::AllocData ()
}
void
-WarpXParticleContainer::AddNParticles (int lev,
+WarpXParticleContainer::AddNParticles (int /*lev*/,
int n, const ParticleReal* x, const ParticleReal* y, const ParticleReal* z,
const ParticleReal* vx, const ParticleReal* vy, const ParticleReal* vz,
int nattr, const ParticleReal* attr, int uniqueparticles, int id)
{
- BL_ASSERT(nattr == 1);
+ BL_ASSERT(nattr == 1); //! @fixme nattr is unused below: false sense of safety
const ParticleReal* weight = attr;
int ibegin, iend;
@@ -493,6 +493,9 @@ WarpXParticleContainer::DepositCharge (amrex::Vector<std::unique_ptr<amrex::Mult
bool local, bool reset,
bool do_rz_volume_scaling)
{
+#ifdef WARPX_DIM_RZ
+ (void)do_rz_volume_scaling;
+#endif
// Loop over the refinement levels
int const finest_level = rho.size() - 1;
for (int lev = 0; lev <= finest_level; ++lev) {