diff options
Diffstat (limited to 'Python/pywarpx')
-rw-r--r-- | Python/pywarpx/picmi.py | 3 |
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 |