aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpXParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-02-05 09:08:05 -0800
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2019-02-05 09:08:05 -0800
commita875adf635afc918567384d9aa91e4c4edb36759 (patch)
tree451f1dd67cfd209566820ab002102c4cbbf9841a /Source/WarpXParticleContainer.cpp
parenta321b95b2f7fc48d295368e3d8772a3b8135328f (diff)
downloadWarpX-a875adf635afc918567384d9aa91e4c4edb36759.tar.gz
WarpX-a875adf635afc918567384d9aa91e4c4edb36759.tar.zst
WarpX-a875adf635afc918567384d9aa91e4c4edb36759.zip
initialize plasma injector
Diffstat (limited to 'Source/WarpXParticleContainer.cpp')
-rw-r--r--Source/WarpXParticleContainer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/WarpXParticleContainer.cpp b/Source/WarpXParticleContainer.cpp
index 99e794317..231f72dda 100644
--- a/Source/WarpXParticleContainer.cpp
+++ b/Source/WarpXParticleContainer.cpp
@@ -168,8 +168,11 @@ WarpXParticleContainer::AddNParticles (int lev,
{
Print()<<"here -5\n";
ParticleType p;
+ Print()<<"here -51\n";
p.id() = ParticleType::NextID();
+ Print()<<"here -52\n";
p.cpu() = ParallelDescriptor::MyProc();
+ Print()<<"here -53\n";
#if (AMREX_SPACEDIM == 3)
p.pos(0) = x[i];
p.pos(1) = y[i];