aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/Gather/GetExternalFields.cpp
diff options
context:
space:
mode:
authorGravatar David Grote <grote1@llnl.gov> 2022-07-27 12:30:44 -0700
committerGravatar GitHub <noreply@github.com> 2022-07-27 12:30:44 -0700
commitc3015247f9d2d82b444084d55fbcbe8e45f8c211 (patch)
treefa9eb3aafccfccec1ca91c8e427985350ed156d4 /Source/Particles/Gather/GetExternalFields.cpp
parentaf5b5764f8a1657a3da901447a3ddf0c358c0b7c (diff)
downloadWarpX-c3015247f9d2d82b444084d55fbcbe8e45f8c211.tar.gz
WarpX-c3015247f9d2d82b444084d55fbcbe8e45f8c211.tar.zst
WarpX-c3015247f9d2d82b444084d55fbcbe8e45f8c211.zip
ParticleReal for external fields and collisions (#3262)
* Use ParticleReal consistently in GetExternalFields * Use ParticleReal in Collision code * Use ParticleReal in Algorithms/KineticEnergy.H * Fix _prt in Algorithms/KineticEnergy.H
Diffstat (limited to 'Source/Particles/Gather/GetExternalFields.cpp')
-rw-r--r--Source/Particles/Gather/GetExternalFields.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Particles/Gather/GetExternalFields.cpp b/Source/Particles/Gather/GetExternalFields.cpp
index 8c57ab9cc..6f5c4cea2 100644
--- a/Source/Particles/Gather/GetExternalFields.cpp
+++ b/Source/Particles/Gather/GetExternalFields.cpp
@@ -17,7 +17,7 @@ GetExternalEBField::GetExternalEBField (const WarpXParIter& a_pti, int a_offset)
auto& mypc = warpx.GetPartContainer();
m_gamma_boost = WarpX::gamma_boost;
- m_uz_boost = std::sqrt(WarpX::gamma_boost*WarpX::gamma_boost - 1._rt)*PhysConst::c;
+ m_uz_boost = std::sqrt(WarpX::gamma_boost*WarpX::gamma_boost - 1._prt)*PhysConst::c;
m_Etype = Unknown;
m_Btype = Unknown;