diff options
Diffstat (limited to 'Source')
-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 922d912e6..050e50daa 100644 --- a/Source/PhysicalParticleContainer.cpp +++ b/Source/PhysicalParticleContainer.cpp @@ -225,7 +225,7 @@ PhysicalParticleContainer::AddPlasma(int lev, RealBox part_realbox ) // and that the boost is along z) Real t = WarpX::GetInstance().gett_new(lev); Real v_boost = WarpX::beta_boost*PhysConst::c; - Real z_lab = WarpX::gamma_boost*( z - v_boost*t ); + 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_lab); // Perform Lorentz transform |