diff options
author | 2023-02-20 09:43:57 -0800 | |
---|---|---|
committer | 2023-02-20 09:43:57 -0800 | |
commit | 65f2204fd3da61d767f2e9f8dcfca64cbeff5ff6 (patch) | |
tree | a4eb4306a9afab584f66ec092fd2f070029ac097 /Python/pywarpx/picmi.py | |
parent | ec6e4a4ec871da9f372f6f8aeea51b8d169b4822 (diff) | |
download | WarpX-65f2204fd3da61d767f2e9f8dcfca64cbeff5ff6.tar.gz WarpX-65f2204fd3da61d767f2e9f8dcfca64cbeff5ff6.tar.zst WarpX-65f2204fd3da61d767f2e9f8dcfca64cbeff5ff6.zip |
add flag to picmi `FieldDiagnostic` for whether particle data should be saved along with the field data (#3699)
Diffstat (limited to 'Python/pywarpx/picmi.py')
-rw-r--r-- | Python/pywarpx/picmi.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py index dff224d07..11f331e3c 100644 --- a/Python/pywarpx/picmi.py +++ b/Python/pywarpx/picmi.py @@ -1699,6 +1699,9 @@ class FieldDiagnostic(picmistandard.PICMI_FieldDiagnostic, WarpXDiagnosticBase): warpx_plot_raw_fields_guards: bool, optional Flag whether the raw fields should include the guard cells + warpx_write_species: bool, optional + Flag whether to output particle data with the diagnostic + warpx_format: {plotfile, checkpoint, openpmd, ascent, sensei}, optional Diagnostic file format @@ -1720,6 +1723,7 @@ class FieldDiagnostic(picmistandard.PICMI_FieldDiagnostic, WarpXDiagnosticBase): self.plot_raw_fields_guards = kw.pop('warpx_plot_raw_fields_guards', None) self.plot_finepatch = kw.pop('warpx_plot_finepatch', None) self.plot_crsepatch = kw.pop('warpx_plot_crsepatch', None) + self.write_species = kw.pop('warpx_write_species', None) self.format = kw.pop('warpx_format', 'plotfile') self.openpmd_backend = kw.pop('warpx_openpmd_backend', None) self.file_prefix = kw.pop('warpx_file_prefix', None) @@ -1794,6 +1798,7 @@ class FieldDiagnostic(picmistandard.PICMI_FieldDiagnostic, WarpXDiagnosticBase): self.diagnostic.plot_raw_fields_guards = self.plot_raw_fields_guards self.diagnostic.plot_finepatch = self.plot_finepatch self.diagnostic.plot_crsepatch = self.plot_crsepatch + self.diagnostic.write_species = self.write_species self.set_write_dir() |