aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx
diff options
context:
space:
mode:
authorGravatar Dave Grote <grote1@llnl.gov> 2018-08-09 16:03:17 -0700
committerGravatar Dave Grote <grote1@llnl.gov> 2018-08-09 16:03:17 -0700
commit74c4bd60fffbba26ebff08417c1bb0fcd9fac75f (patch)
treea41b0655d0e4efd686a4c9350c7b1a99b6204948 /Python/pywarpx
parentca826617926282be46124cf2863f7f330d012c26 (diff)
downloadWarpX-74c4bd60fffbba26ebff08417c1bb0fcd9fac75f.tar.gz
WarpX-74c4bd60fffbba26ebff08417c1bb0fcd9fac75f.tar.zst
WarpX-74c4bd60fffbba26ebff08417c1bb0fcd9fac75f.zip
Added H+ to picmi
Diffstat (limited to 'Python/pywarpx')
-rw-r--r--Python/pywarpx/picmi.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py
index 6cfb5a208..6ce135af6 100644
--- a/Python/pywarpx/picmi.py
+++ b/Python/pywarpx/picmi.py
@@ -31,6 +31,9 @@ class Species(PICMI_Base.PICMI_Species):
elif self.particle_type == 'anti-proton':
if self.charge is None: self.charge = '-q_e'
if self.mass is None: self.mass = 'm_p'
+ elif self.particle_type == 'H' and self.charge_state == 1:
+ if self.charge is None: self.charge = 'q_e'
+ if self.mass is None: self.mass = 'm_p'
def initialize_inputs(self, layout):
self.species_number = pywarpx.particles.nspecies