diff options
author | 2022-07-27 12:32:41 -0700 | |
---|---|---|
committer | 2022-07-27 12:32:41 -0700 | |
commit | c7eff60a29dc5e17b5afa1b8c0c1ef5dc452749c (patch) | |
tree | 9d29c22eaf68cfdfbe2402b6612c3e11f0c495f3 /Source/Particles/Pusher/UpdatePositionPhoton.H | |
parent | c3015247f9d2d82b444084d55fbcbe8e45f8c211 (diff) | |
download | WarpX-c7eff60a29dc5e17b5afa1b8c0c1ef5dc452749c.tar.gz WarpX-c7eff60a29dc5e17b5afa1b8c0c1ef5dc452749c.tar.zst WarpX-c7eff60a29dc5e17b5afa1b8c0c1ef5dc452749c.zip |
Starting with the pusher, consistently use ParticleReal (#3259)
* Starting with the pusher, consistently use ParticleReal
* Update benchmarks for background_mcc_dp_psp
Diffstat (limited to 'Source/Particles/Pusher/UpdatePositionPhoton.H')
-rw-r--r-- | Source/Particles/Pusher/UpdatePositionPhoton.H | 4 |
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) |