diff options
author | 2020-03-30 08:27:31 -0700 | |
---|---|---|
committer | 2020-03-30 08:27:31 -0700 | |
commit | 6f356557b114e0716a02539dc5a1687ea9a58195 (patch) | |
tree | 1f31878397a9dc2bca90a4815f024689540b4d2d /Source/Particles/PhysicalParticleContainer.cpp | |
parent | 237cba843348973e8163967bdd63e8af684a8df9 (diff) | |
download | WarpX-6f356557b114e0716a02539dc5a1687ea9a58195.tar.gz WarpX-6f356557b114e0716a02539dc5a1687ea9a58195.tar.zst WarpX-6f356557b114e0716a02539dc5a1687ea9a58195.zip |
Remove compiler warnings (#843)
* Fix compiler warnings with DIM=2
* Fix compiler warnings with USE_RZ=TRUE
* Fix compiler warnings with USE_PSATD=TRUE and DIM=2
* Fix compiler warnings with USE_PSATD=TRUE and DIM=3
* Fix bug: discard only return value when calling DefineAndReturnParticleTile
* Remove unused variables not triggering warnings
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhysicalParticleContainer.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index 0eb9b52df..e89d537b6 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -233,9 +233,6 @@ PhysicalParticleContainer::AddGaussianBeam(Real x_m, Real y_m, Real z_m, Real q_tot, long npart, int do_symmetrize) { - const Geometry& geom = m_gdb->Geom(0); - RealBox containing_bx = geom.ProbDomain(); - std::mt19937_64 mt(0451); std::normal_distribution<double> distx(x_m, x_rms); std::normal_distribution<double> disty(y_m, y_rms); @@ -897,8 +894,6 @@ PhysicalParticleContainer::FieldGather (int lev, const amrex::MultiFab& By, const amrex::MultiFab& Bz) { - const std::array<Real,3>& dx = WarpX::CellSize(lev); - BL_ASSERT(OnSameGrids(lev,Ex)); amrex::Vector<amrex::Real>* cost = WarpX::getCosts(lev); @@ -915,8 +910,6 @@ PhysicalParticleContainer::FieldGather (int lev, } Real wt = amrex::second(); - const Box& box = pti.validbox(); - auto& attribs = pti.GetAttribs(); auto& Exp = attribs[PIdx::Ex]; @@ -972,13 +965,6 @@ PhysicalParticleContainer::Evolve (int lev, WARPX_PROFILE_VAR_NS("PPC::EvolveOpticalDepth", blp_ppc_qed_ev); WARPX_PROFILE_VAR_NS("PPC::ParticlePush", blp_ppc_pp); - const std::array<Real,3>& dx = WarpX::CellSize(lev); - const std::array<Real,3>& cdx = WarpX::CellSize(std::max(lev-1,0)); - - // Get instances of NCI Godfrey filters - const auto& nci_godfrey_filter_exeybz = WarpX::GetInstance().nci_godfrey_filter_exeybz; - const auto& nci_godfrey_filter_bxbyez = WarpX::GetInstance().nci_godfrey_filter_bxbyez; - BL_ASSERT(OnSameGrids(lev,jx)); amrex::Vector<amrex::Real>* cost = WarpX::getCosts(lev); @@ -1660,16 +1646,12 @@ PhysicalParticleContainer::PushP (int lev, Real dt, if (do_not_push) return; - const std::array<Real,3>& dx = WarpX::CellSize(lev); - #ifdef _OPENMP #pragma omp parallel #endif { for (WarpXParIter pti(*this, lev); pti.isValid(); ++pti) { - const Box& box = pti.validbox(); - auto& attribs = pti.GetAttribs(); auto& Exp = attribs[PIdx::Ex]; |