diff options
Diffstat (limited to 'Python/pywarpx/picmi.py')
-rw-r--r-- | Python/pywarpx/picmi.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py index f872f7e97..4bf82b9fb 100644 --- a/Python/pywarpx/picmi.py +++ b/Python/pywarpx/picmi.py @@ -887,13 +887,14 @@ class MCCCollisions(picmistandard.base._ClassWithInit): def __init__(self, name, species, background_density, background_temperature, scattering_processes, - background_mass=None, **kw): + background_mass=None, ndt=None, **kw): self.name = name self.species = species self.background_density = background_density self.background_temperature = background_temperature self.background_mass = background_mass self.scattering_processes = scattering_processes + self.ndt = ndt self.handle_init(kw) @@ -904,6 +905,7 @@ class MCCCollisions(picmistandard.base._ClassWithInit): collision.background_density = self.background_density collision.background_temperature = self.background_temperature collision.background_mass = self.background_mass + collision.ndt = self.ndt collision.scattering_processes = self.scattering_processes.keys() for process, kw in self.scattering_processes.items(): |