diff options
author | 2022-04-16 08:20:40 -0700 | |
---|---|---|
committer | 2022-04-16 08:20:40 -0700 | |
commit | 18a1df1943283a693daa153dc40f44be769b0850 (patch) | |
tree | 264b41bb7e47ad906a33870b3eb26e7877fdea7b /Python/pywarpx/timestepper.py | |
parent | 48f10bedc1650c6ebc519115e9e1b45865db1e72 (diff) | |
download | WarpX-18a1df1943283a693daa153dc40f44be769b0850.tar.gz WarpX-18a1df1943283a693daa153dc40f44be769b0850.tar.zst WarpX-18a1df1943283a693daa153dc40f44be769b0850.zip |
Avoid unnecessary construction of CopyParticleAttribs (#3042)
If it's not used there is no reason to construct a CopyParticleAttribs
object. In fact, it could result in a runtime `std::out_of_range` error in
`std::map::at()` because `tmp_particle_data` is used in the
CopyParticleAttribs constructor, but in `PhysicalParticleContainer::Evolve`,
`tmp_particle_data` is properly prepared only when doing back transformed
diagnostics.
Diffstat (limited to 'Python/pywarpx/timestepper.py')
0 files changed, 0 insertions, 0 deletions