aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/Particles.py
diff options
context:
space:
mode:
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