aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/MultiParticleContainer.H
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Particles/MultiParticleContainer.H')
-rw-r--r--Source/Particles/MultiParticleContainer.H10
1 files changed, 3 insertions, 7 deletions
diff --git a/Source/Particles/MultiParticleContainer.H b/Source/Particles/MultiParticleContainer.H
index 2a8aec140..cb94911c7 100644
--- a/Source/Particles/MultiParticleContainer.H
+++ b/Source/Particles/MultiParticleContainer.H
@@ -20,6 +20,7 @@
# include "Particles/ElementaryProcess/QEDInternals/QuantumSyncEngineWrapper_fwd.H"
#endif
#include "PhysicalParticleContainer.H"
+#include "Utils/TextMsg.H"
#include "Utils/WarpXConst.H"
#include "Utils/WarpXUtil.H"
#include "WarpXParticleContainer.H"
@@ -77,12 +78,7 @@ public:
GetParticleContainerPtr (int ispecies) const {return allcontainers[ispecies].get();}
WarpXParticleContainer&
- GetParticleContainerFromName (std::string name) const {
- auto it = std::find(species_names.begin(), species_names.end(), name);
- WarpXUtilMsg::AlwaysAssert(it != species_names.end(), "ERROR: Unknown species name");
- int i = std::distance(species_names.begin(), it);
- return *allcontainers[i];
- }
+ GetParticleContainerFromName (const std::string& name) const;
#ifdef WARPX_USE_OPENPMD
std::unique_ptr<WarpXParticleContainer>& GetUniqueContainer(int ispecies) {
@@ -518,7 +514,7 @@ private:
First const& pc_dst, Args const&... others) const noexcept
{
if (pc_src.do_tiling && amrex::Gpu::notInLaunchRegion()) {
- AMREX_ALWAYS_ASSERT_WITH_MESSAGE(pc_dst.do_tiling,
+ WARPX_ALWAYS_ASSERT_WITH_MESSAGE(pc_dst.do_tiling,
"For particle creation processes, either all or none of the "
"particle species must use tiling.");
}