From ae982484f2ebb4ddc1b772360fc041d5d11e89d8 Mon Sep 17 00:00:00 2001 From: Marco Garten Date: Fri, 8 Sep 2023 09:04:33 -0700 Subject: 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 --- 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 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 .lower_bound + + warpx_upper_bound: vector of floats, optional + Upper corner of output fields + that is passed to .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): -- cgit v1.2.3