diff options
author | 2019-11-13 12:03:49 +0100 | |
---|---|---|
committer | 2019-11-13 12:03:49 +0100 | |
commit | 913cbf0464d6a79c959dde446158791939dfd21d (patch) | |
tree | 094c962b1e08f90c9c4a9f445c0cb48571e8e5bd /Source/Particles/PhotonParticleContainer.cpp | |
parent | ff795bd801190d7f44fd39873c0080e9f1c9b136 (diff) | |
parent | 2598a1419aae23e606695e800547fc405bc28351 (diff) | |
download | WarpX-913cbf0464d6a79c959dde446158791939dfd21d.tar.gz WarpX-913cbf0464d6a79c959dde446158791939dfd21d.tar.zst WarpX-913cbf0464d6a79c959dde446158791939dfd21d.zip |
Merge branch 'qed_evolve_optical_depth' of github.com:lucafedeli88/WarpX into qed_evolve_optical_depth
Diffstat (limited to 'Source/Particles/PhotonParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhotonParticleContainer.cpp | 8 |
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, |