From 350b4defb7b830cf015b2793be1f0d5bd4587470 Mon Sep 17 00:00:00 2001 From: Yinjian Zhao Date: Mon, 20 Mar 2023 23:53:05 +0800 Subject: PICMI: add `do_not_push` and `do_not_gather` (#3766) --- Python/pywarpx/picmi.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Python/pywarpx/picmi.py') 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 -- cgit v1.2.3