diff options
author | 2017-12-08 17:14:46 -0800 | |
---|---|---|
committer | 2017-12-08 17:14:46 -0800 | |
commit | 447635818e7a51116750b7928c20da72303832df (patch) | |
tree | 2996b854f40c8e9fcc002bbf2f973a0270d84d1a /Source/PhysicalParticleContainer.cpp | |
parent | fe6f5dfc1190dd3429178e3ce66bd3fbc744128f (diff) | |
parent | 6676a4958a1c25f8721a6217cb4721f946402577 (diff) | |
download | WarpX-447635818e7a51116750b7928c20da72303832df.tar.gz WarpX-447635818e7a51116750b7928c20da72303832df.tar.zst WarpX-447635818e7a51116750b7928c20da72303832df.zip |
Merge branch 'master' of bitbucket.org:berkeleylab/warpx
Diffstat (limited to 'Source/PhysicalParticleContainer.cpp')
-rw-r--r-- | Source/PhysicalParticleContainer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/PhysicalParticleContainer.cpp b/Source/PhysicalParticleContainer.cpp index e5f6b0c82..922d912e6 100644 --- a/Source/PhysicalParticleContainer.cpp +++ b/Source/PhysicalParticleContainer.cpp @@ -227,7 +227,7 @@ PhysicalParticleContainer::AddPlasma(int lev, RealBox part_realbox ) Real v_boost = WarpX::beta_boost*PhysConst::c; Real z_lab = WarpX::gamma_boost*( z - v_boost*t ); plasma_injector->getMomentum(u, x, y, z_lab); - dens = plasma_injector->getDensity(x, y, z); + dens = plasma_injector->getDensity(x, y, z_lab); // Perform Lorentz transform // (Assumes that the plasma has a low velocity) u[2] = WarpX::gamma_boost * ( u[2] - v_boost ); |