diff options
author | 2019-05-24 16:27:09 -0700 | |
---|---|---|
committer | 2019-05-24 16:27:09 -0700 | |
commit | 5473027f14805cae5f00f21a8eef2ca988d9f8ab (patch) | |
tree | 3eb230a12e7bf890254ed88d8eeb5a23178a63af /Source/Particles/PhysicalParticleContainer.cpp | |
parent | 46b9fde64b935703e9bda18f6150a165c14d4032 (diff) | |
download | WarpX-5473027f14805cae5f00f21a8eef2ca988d9f8ab.tar.gz WarpX-5473027f14805cae5f00f21a8eef2ca988d9f8ab.tar.zst WarpX-5473027f14805cae5f00f21a8eef2ca988d9f8ab.zip |
add doc
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhysicalParticleContainer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index 38ea55d6e..bf93375fe 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -244,6 +244,7 @@ PhysicalParticleContainer::CheckAndAddParticle(Real x, Real y, Real z, std::array<Real,PIdx::nattribs> attribs; attribs.fill(0.0); + // update attribs with input arguments if (WarpX::gamma_boost > 1.) { MapParticletoBoostedFrame(x, y, z, u); } @@ -254,6 +255,7 @@ PhysicalParticleContainer::CheckAndAddParticle(Real x, Real y, Real z, if (WarpX::do_boosted_frame_diagnostic && do_boosted_frame_diags) { + // need to create old values auto& particle_tile = DefineAndReturnParticleTile(0, 0, 0); particle_tile.push_back_real(particle_comps["xold"], x); particle_tile.push_back_real(particle_comps["yold"], y); @@ -263,6 +265,7 @@ PhysicalParticleContainer::CheckAndAddParticle(Real x, Real y, Real z, particle_tile.push_back_real(particle_comps["uyold"], u[1]); particle_tile.push_back_real(particle_comps["uzold"], u[2]); } + // add particle AddOneParticle(0, 0, 0, x, y, z, attribs); } |