aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/picmi.py
diff options
context:
space:
mode:
authorGravatar Marco Garten <mgarten@lbl.gov> 2023-09-08 09:04:33 -0700
committerGravatar GitHub <noreply@github.com> 2023-09-08 09:04:33 -0700
commitae982484f2ebb4ddc1b772360fc041d5d11e89d8 (patch)
tree92298a322a945dff27308bed5a6c6ad8060d8030 /Python/pywarpx/picmi.py
parent028b14a233779d06e41707b7afa92e696998c1be (diff)
downloadWarpX-ae982484f2ebb4ddc1b772360fc041d5d11e89d8.tar.gz
WarpX-ae982484f2ebb4ddc1b772360fc041d5d11e89d8.tar.zst
WarpX-ae982484f2ebb4ddc1b772360fc041d5d11e89d8.zip
Add lower and upper bound params to regular diags in PICMI (#4266)
* Add lower and upper bound params to regular diags The parameters `warpx_lower_bound` and `warpx_upper_bound` can now be used in the definition of a `FieldDiagnostic` in PICMI. * Add docstring for lower and upper bound
Diffstat (limited to '')
-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 975bb3808..dbdebf452 100644
--- a/Python/pywarpx/picmi.py
+++ b/Python/pywarpx/picmi.py
@@ -1963,6 +1963,14 @@ class FieldDiagnostic(picmistandard.PICMI_FieldDiagnostic, WarpXDiagnosticBase):
warpx_dump_rz_modes: bool, optional
Flag whether to dump the data for all RZ modes
+
+ warpx_lower_bound: vector of floats, optional
+ Lower corner of output fields
+ that is passed to <diagnostic name>.lower_bound
+
+ warpx_upper_bound: vector of floats, optional
+ Upper corner of output fields
+ that is passed to <diagnostic name>.upper_bound
"""
def init(self, kw):
@@ -1976,6 +1984,8 @@ class FieldDiagnostic(picmistandard.PICMI_FieldDiagnostic, WarpXDiagnosticBase):
self.file_prefix = kw.pop('warpx_file_prefix', None)
self.file_min_digits = kw.pop('warpx_file_min_digits', None)
self.dump_rz_modes = kw.pop('warpx_dump_rz_modes', None)
+ self.lower_bound = kw.pop('warpx_lower_bound', None)
+ self.upper_bound = kw.pop('warpx_upper_bound', None)
def initialize_inputs(self):