aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/Pusher/UpdatePositionPhoton.H
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Particles/Pusher/UpdatePositionPhoton.H')
-rw-r--r--Source/Particles/Pusher/UpdatePositionPhoton.H4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Particles/Pusher/UpdatePositionPhoton.H b/Source/Particles/Pusher/UpdatePositionPhoton.H
index 5e958c2c1..c570968d4 100644
--- a/Source/Particles/Pusher/UpdatePositionPhoton.H
+++ b/Source/Particles/Pusher/UpdatePositionPhoton.H
@@ -28,8 +28,8 @@ void UpdatePositionPhoton(
// Compute speed of light over inverse of momentum modulus, avoiding a division by zero in the
// case where the photon has exactly zero momentum
- const amrex::Real u_norm = std::sqrt(ux*ux + uy*uy + uz*uz);
- const amrex::Real c_over_umod = (u_norm == 0._rt) ? 0._rt: PhysConst::c/u_norm;
+ const amrex::ParticleReal u_norm = std::sqrt(ux*ux + uy*uy + uz*uz);
+ const amrex::ParticleReal c_over_umod = (u_norm == 0._prt) ? 0._prt: PhysConst::c/u_norm;
// Update positions over one time step
#if (AMREX_SPACEDIM >= 2)