aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhotonParticleContainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Particles/PhotonParticleContainer.cpp')
-rw-r--r--Source/Particles/PhotonParticleContainer.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/Source/Particles/PhotonParticleContainer.cpp b/Source/Particles/PhotonParticleContainer.cpp
index 8a18fbf70..760264317 100644
--- a/Source/Particles/PhotonParticleContainer.cpp
+++ b/Source/Particles/PhotonParticleContainer.cpp
@@ -102,8 +102,6 @@ PhotonParticleContainer::PushPX (WarpXParIter& pti,
ParticleReal* const AMREX_RESTRICT uz = attribs[PIdx::uz].dataPtr();
#ifdef WARPX_QED
- AMREX_ASSERT(has_breit_wheeler());
-
BreitWheelerEvolveOpticalDepth evolve_opt;
amrex::Real* AMREX_RESTRICT p_optical_depth_BW = nullptr;
const bool local_has_breit_wheeler = has_breit_wheeler();
@@ -183,12 +181,8 @@ PhotonParticleContainer::PushPX (WarpXParIter& pti,
#ifdef WARPX_QED
if (local_has_breit_wheeler) {
- const ParticleReal px = me * ux[i];
- const ParticleReal py = me * uy[i];
- const ParticleReal pz = me * uz[i];
-
- bool has_event_happened = evolve_opt(px, py, pz, Exp, Eyp, Ezp, Bxp, Byp, Bzp,
- dt, p_optical_depth_BW[i]);
+ evolve_opt(ux[i], uy[i], uz[i], Exp, Eyp, Ezp, Bxp, Byp, Bzp,
+ dt, p_optical_depth_BW[i]);
}
#endif
@@ -212,8 +206,7 @@ PhotonParticleContainer::Evolve (int lev,
Real t, Real dt, DtType /*a_dt_type*/)
{
// This does gather, push and depose.
- // Push and depose have been re-written for photon,
- // so they do not do anything.
+ // Push and depose have been re-written for photons
PhysicalParticleContainer::Evolve (lev,
Ex, Ey, Ez,
Bx, By, Bz,