aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/Collision/BackgroundStopping/BackgroundStopping.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Particles/Collision/BackgroundStopping/BackgroundStopping.cpp')
-rw-r--r--Source/Particles/Collision/BackgroundStopping/BackgroundStopping.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/Source/Particles/Collision/BackgroundStopping/BackgroundStopping.cpp b/Source/Particles/Collision/BackgroundStopping/BackgroundStopping.cpp
index dd51a3d0d..a970c490f 100644
--- a/Source/Particles/Collision/BackgroundStopping/BackgroundStopping.cpp
+++ b/Source/Particles/Collision/BackgroundStopping/BackgroundStopping.cpp
@@ -75,16 +75,11 @@ BackgroundStopping::BackgroundStopping (std::string const collision_name)
}
void
-BackgroundStopping::doCollisions (amrex::Real cur_time, MultiParticleContainer* mypc)
+BackgroundStopping::doCollisions (amrex::Real cur_time, amrex::Real dt, MultiParticleContainer* mypc)
{
WARPX_PROFILE("BackgroundStopping::doCollisions()");
using namespace amrex::literals;
- // Note that the lowest level time step is used for all levels since the
- // collision operation will be done only once per step at the lowest level.
- const amrex::Real dt = WarpX::GetInstance().getdt(0) * m_ndt;
- if (int(std::floor(cur_time/dt)) % m_ndt != 0) return;
-
auto& species = mypc->GetParticleContainerFromName(m_species_names[0]);
amrex::Real species_mass = species.getMass();
amrex::Real species_charge = species.getCharge();