aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar RevathiJambunathan <revanathan@gmail.com> 2019-10-14 10:01:13 -0700
committerGravatar RevathiJambunathan <revanathan@gmail.com> 2019-10-14 10:01:13 -0700
commit8603697699441e7775eb181a4e19b39b1fef89a4 (patch)
tree4fc198c2f6543062922630ea8598cafe2419d160 /Source/Particles/PhysicalParticleContainer.cpp
parent6c92c24a42febe86076f42beb0b5572024f98cc1 (diff)
parente9f48660bc4297de65440d710501a7aa29a45180 (diff)
downloadWarpX-8603697699441e7775eb181a4e19b39b1fef89a4.tar.gz
WarpX-8603697699441e7775eb181a4e19b39b1fef89a4.tar.zst
WarpX-8603697699441e7775eb181a4e19b39b1fef89a4.zip
implementing particle copy from temp arrays to buffer arrays on the GPU using exclusive scan operations for boosted frame diagnostics.
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r--Source/Particles/PhysicalParticleContainer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp
index 2833d8ac5..c14ae64bb 100644
--- a/Source/Particles/PhysicalParticleContainer.cpp
+++ b/Source/Particles/PhysicalParticleContainer.cpp
@@ -1680,7 +1680,7 @@ void PhysicalParticleContainer::GetParticleSlice(const int direction, const Real
for (int lev = 0; lev < nlevs; ++lev) {
- const Real* dx = Geom(lev).CellSize();
+ const Real* dx = Geom(lev).CellSize();
const Real* plo = Geom(lev).ProbLo();
// first we touch each map entry in serial
@@ -1795,6 +1795,7 @@ void PhysicalParticleContainer::GetParticleSlice(const int direction, const Real
{
if (Flag[i] == 1)
{
+ // Lorentz Transform particles to lab-frame
const Real gamma_new_p = std::sqrt(1.0 + inv_c2*
(uxpnew[i]*uxpnew[i]
+ uypnew[i]*uypnew[i]