diff options
author | 2019-05-23 15:27:17 -0700 | |
---|---|---|
committer | 2019-05-23 15:27:17 -0700 | |
commit | 5308cbefa8fbde30bed8a88943d58ec646731d9e (patch) | |
tree | dd148cd6c54b121aeb29c2c8413adf495f643f45 /Source/Laser/LaserParticleContainer.cpp | |
parent | 62b03c30d50899f3c7c334f06c7cee7ad8c55543 (diff) | |
download | WarpX-5308cbefa8fbde30bed8a88943d58ec646731d9e.tar.gz WarpX-5308cbefa8fbde30bed8a88943d58ec646731d9e.tar.zst WarpX-5308cbefa8fbde30bed8a88943d58ec646731d9e.zip |
fix a bunch of unused variable / parameter shadowing warnings
Diffstat (limited to 'Source/Laser/LaserParticleContainer.cpp')
-rw-r--r-- | Source/Laser/LaserParticleContainer.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Laser/LaserParticleContainer.cpp b/Source/Laser/LaserParticleContainer.cpp index 52d506bb8..2f964b6f3 100644 --- a/Source/Laser/LaserParticleContainer.cpp +++ b/Source/Laser/LaserParticleContainer.cpp @@ -78,14 +78,14 @@ LaserParticleContainer::LaserParticleContainer (AmrCore* amr_core, int ispecies, parser.define(field_function); parser.registerVariables({"X","Y","t"}); - ParmParse pp("my_constants"); + ParmParse ppc("my_constants"); std::set<std::string> symbols = parser.symbols(); symbols.erase("X"); symbols.erase("Y"); symbols.erase("t"); // after removing variables, we are left with constants for (auto it = symbols.begin(); it != symbols.end(); ) { Real v; - if (pp.query(it->c_str(), v)) { + if (ppc.query(it->c_str(), v)) { parser.setConstant(*it, v); it = symbols.erase(it); } else { @@ -429,8 +429,6 @@ LaserParticleContainer::Evolve (int lev, { Real wt = amrex::second(); - const Box& box = pti.validbox(); - auto& attribs = pti.GetAttribs(); auto& wp = attribs[PIdx::w ]; |