aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/Particles.py
diff options
context:
space:
mode:
authorGravatar Dave Grote <grote1@llnl.gov> 2018-07-25 14:38:15 -0700
committerGravatar Dave Grote <grote1@llnl.gov> 2018-07-25 14:38:15 -0700
commit9c9ab769bba7b6d92170bce2651a294c500c1260 (patch)
tree4589f4b39a979def3569168d8ace544f7d3f5295 /Python/pywarpx/Particles.py
parent4e379e6c6e69fe499cd91be7c6019448f392ec14 (diff)
downloadWarpX-9c9ab769bba7b6d92170bce2651a294c500c1260.tar.gz
WarpX-9c9ab769bba7b6d92170bce2651a294c500c1260.tar.zst
WarpX-9c9ab769bba7b6d92170bce2651a294c500c1260.zip
Cleaned up handling of new species
Diffstat (limited to 'Python/pywarpx/Particles.py')
-rw-r--r--Python/pywarpx/Particles.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Python/pywarpx/Particles.py b/Python/pywarpx/Particles.py
index 395a888d7..757a49d00 100644
--- a/Python/pywarpx/Particles.py
+++ b/Python/pywarpx/Particles.py
@@ -22,3 +22,8 @@ particle_dict = {'electrons':electrons,
'positrons':positrons,
'protons':protons
}
+
+def newspecies(name):
+ result = Bucket(name)
+ particles_list.append(result)
+ return result