aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/MultiParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Neïl Zaim <49716072+NeilZaim@users.noreply.github.com> 2022-08-05 00:03:54 +0200
committerGravatar GitHub <noreply@github.com> 2022-08-04 15:03:54 -0700
commitd182ec3cb70fa8bb613de464e0404d6c847e4641 (patch)
tree54dd8b1b9541efaa590b56b3cb632b1780ccc4a0 /Source/Particles/MultiParticleContainer.cpp
parentf1fe600f4483a713165195fc54e61f1346bed927 (diff)
downloadWarpX-d182ec3cb70fa8bb613de464e0404d6c847e4641.tar.gz
WarpX-d182ec3cb70fa8bb613de464e0404d6c847e4641.tar.zst
WarpX-d182ec3cb70fa8bb613de464e0404d6c847e4641.zip
Species variables in diagnostics: deal with runtime components (#3218)
* Species variables in diagnostics: deal with runtime components * Remove ParticleStringNames namespace * Use const reference in iteration variable * Fix ion acc 2D test * Output extra (e.g. initialized later with python) comps by default * Always output theta in RZ * Fix QED tests * Fix Laser Acceleration RZ test
Diffstat (limited to 'Source/Particles/MultiParticleContainer.cpp')
-rw-r--r--Source/Particles/MultiParticleContainer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Particles/MultiParticleContainer.cpp b/Source/Particles/MultiParticleContainer.cpp
index 67039d8a3..34dd488c1 100644
--- a/Source/Particles/MultiParticleContainer.cpp
+++ b/Source/Particles/MultiParticleContainer.cpp
@@ -19,6 +19,7 @@
# include "Particles/ElementaryProcess/QEDPhotonEmission.H"
#endif
#include "Particles/LaserParticleContainer.H"
+#include "Particles/NamedComponentParticleContainer.H"
#include "Particles/ParticleCreation/FilterCopyTransform.H"
#ifdef WARPX_QED
# include "Particles/ParticleCreation/FilterCreateTransformFromFAB.H"
@@ -1405,8 +1406,7 @@ MultiParticleContainer::doQEDSchwinger ()
const auto CreateEle = create_factory_ele.getSmartCreate();
const auto CreatePos = create_factory_pos.getSmartCreate();
- const auto Transform = SchwingerTransformFunc{m_qed_schwinger_y_size,
- ParticleStringNames::to_index.find("w")->second};
+ const auto Transform = SchwingerTransformFunc{m_qed_schwinger_y_size, PIdx::w};
const auto num_added = filterCreateTransformFromFAB<1>( dst_ele_tile,
dst_pos_tile, box, fieldsEB, np_ele_dst,