aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhotonParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2019-11-06 11:09:24 +0100
committerGravatar Luca Fedeli <luca.fedeli@cea.fr> 2019-11-06 11:09:24 +0100
commit5b7ae4e641721564eaf6a29699f945998e4be5c0 (patch)
treedf1df4478e89a9e8d01caf1d61adcd8cbe257e4c /Source/Particles/PhotonParticleContainer.cpp
parent7220ab302e9a62116f52f0345018d48d5884bca4 (diff)
downloadWarpX-5b7ae4e641721564eaf6a29699f945998e4be5c0.tar.gz
WarpX-5b7ae4e641721564eaf6a29699f945998e4be5c0.tar.zst
WarpX-5b7ae4e641721564eaf6a29699f945998e4be5c0.zip
Revert "fixed bug"
This reverts commit 7220ab302e9a62116f52f0345018d48d5884bca4.
Diffstat (limited to 'Source/Particles/PhotonParticleContainer.cpp')
-rw-r--r--Source/Particles/PhotonParticleContainer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Particles/PhotonParticleContainer.cpp b/Source/Particles/PhotonParticleContainer.cpp
index 001f748d0..7d63fff11 100644
--- a/Source/Particles/PhotonParticleContainer.cpp
+++ b/Source/Particles/PhotonParticleContainer.cpp
@@ -143,14 +143,14 @@ PhotonParticleContainer::EvolveOpticalDepth(
amrex::Real* AMREX_RESTRICT p_tau =
pti.GetAttribs(particle_comps["tau"]).dataPtr();
- const auto mec = PhysConst::m_e * PhysConst::c;
+ const auto me = PhysConst::m_e;
amrex::ParallelFor(
pti.numParticles(),
[=] AMREX_GPU_DEVICE (long i) {
- const ParticleReal px = mec * ux[i];
- const ParticleReal py = mec * uy[i];
- const ParticleReal pz = mec * uz[i];
+ 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,