diff options
author | 2020-02-27 14:30:03 -0800 | |
---|---|---|
committer | 2020-02-27 14:30:03 -0800 | |
commit | 4d961b7eb3c7a75947eac0343f473167273d18eb (patch) | |
tree | 0fb7df207ed3b7b23ecc04061f5ea155cdf84e3e /Source/Particles/WarpXParticleContainer.cpp | |
parent | 39e33128cd32338d20a2e7fa7287e44c64c8699c (diff) | |
download | WarpX-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.cpp | 7 |
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) { |