aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/picmi.py
diff options
context:
space:
mode:
authorGravatar Yinjian Zhao <yinjianzhao@lbl.gov> 2023-03-20 23:53:05 +0800
committerGravatar GitHub <noreply@github.com> 2023-03-20 08:53:05 -0700
commit350b4defb7b830cf015b2793be1f0d5bd4587470 (patch)
treefe31d4402e9b135626b44adb638049a4d20a0b7b /Python/pywarpx/picmi.py
parent175a4b2746e6954e6a621fd97817c70bd05ae199 (diff)
downloadWarpX-350b4defb7b830cf015b2793be1f0d5bd4587470.tar.gz
WarpX-350b4defb7b830cf015b2793be1f0d5bd4587470.tar.zst
WarpX-350b4defb7b830cf015b2793be1f0d5bd4587470.zip
PICMI: add `do_not_push` and `do_not_gather` (#3766)
Diffstat (limited to 'Python/pywarpx/picmi.py')
-rw-r--r--Python/pywarpx/picmi.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py
index 0eb6125a4..36dc1d0c7 100644
--- a/Python/pywarpx/picmi.py
+++ b/Python/pywarpx/picmi.py
@@ -73,6 +73,12 @@ class Species(picmistandard.PICMI_Species):
Whether or not to deposit the charge and current density for
for this species
+ warpx_do_not_push: bool, default=False
+ Whether or not to push this species
+
+ warpx_do_not_gather: bool, default=False
+ Whether or not to gahter the fields from grids for this species
+
warpx_random_theta: bool, default=True
Whether or not to add random angle to the particles in theta
when in RZ mode.
@@ -174,6 +180,8 @@ class Species(picmistandard.PICMI_Species):
self.self_fields_verbosity = kw.pop('warpx_self_fields_verbosity', None)
self.save_previous_position = kw.pop('warpx_save_previous_position', None)
self.do_not_deposit = kw.pop('warpx_do_not_deposit', None)
+ self.do_not_push = kw.pop('warpx_do_not_push', None)
+ self.do_not_gather = kw.pop('warpx_do_not_gather', None)
self.random_theta = kw.pop('warpx_random_theta', None)
# For particle reflection
@@ -227,6 +235,8 @@ class Species(picmistandard.PICMI_Species):
save_particles_at_eb = self.save_particles_at_eb,
save_previous_position = self.save_previous_position,
do_not_deposit = self.do_not_deposit,
+ do_not_push = self.do_not_push,
+ do_not_gather = self.do_not_gather,
random_theta = self.random_theta)
# add reflection models