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.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp
index cf609308b..54cc1a880 100644
--- a/Source/Particles/PhysicalParticleContainer.cpp
+++ b/Source/Particles/PhysicalParticleContainer.cpp
@@ -1734,13 +1734,13 @@ void PhysicalParticleContainer::EvolveOpticalDepth(
ParticleReal* const AMREX_RESTRICT p_tau =
pti.GetAttribs(particle_comps["tau"]).dataPtr();
- const auto mc = PhysConst::c * this->mass;
+ const ParticleReal m = this->mass;
amrex::ParallelFor(pti.numParticles(),
[=] AMREX_GPU_DEVICE (long i) {
- const ParticleReal px = mc * ux[i];
- const ParticleReal py = mc * uy[i];
- const ParticleReal pz = mc * uz[i];
+ const ParticleReal px = m * ux[i];
+ const ParticleReal py = m * uy[i];
+ const ParticleReal pz = m * uz[i];
bool has_event_happened = evolve_opt(
px, py, pz,