aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r--Source/Particles/PhysicalParticleContainer.cpp18
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];