aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/picmi.py
diff options
context:
space:
mode:
authorGravatar Roelof Groenewald <40245517+roelof-groenewald@users.noreply.github.com> 2022-03-07 13:38:20 -0800
committerGravatar GitHub <noreply@github.com> 2022-03-07 21:38:20 +0000
commit4e099579f9629efbdd404fdc6a693ed53b275ae0 (patch)
tree68371188d032bfc5b48b9aba2e99b8fa12bdbacf /Python/pywarpx/picmi.py
parentef58e3511492f34f930c7f8320614522629ce87f (diff)
downloadWarpX-4e099579f9629efbdd404fdc6a693ed53b275ae0.tar.gz
WarpX-4e099579f9629efbdd404fdc6a693ed53b275ae0.tar.zst
WarpX-4e099579f9629efbdd404fdc6a693ed53b275ae0.zip
properly handle MCC collision subcycling (#2934)
Diffstat (limited to 'Python/pywarpx/picmi.py')
-rw-r--r--Python/pywarpx/picmi.py4
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():