aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/Diagnostics.py
diff options
context:
space:
mode:
authorGravatar Weiqun Zhang <WeiqunZhang@lbl.gov> 2022-04-16 08:20:40 -0700
committerGravatar GitHub <noreply@github.com> 2022-04-16 08:20:40 -0700
commit18a1df1943283a693daa153dc40f44be769b0850 (patch)
tree264b41bb7e47ad906a33870b3eb26e7877fdea7b /Python/pywarpx/Diagnostics.py
parent48f10bedc1650c6ebc519115e9e1b45865db1e72 (diff)
downloadWarpX-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/Diagnostics.py')
0 files changed, 0 insertions, 0 deletions