diff options
author | 2018-12-03 17:08:49 -0800 | |
---|---|---|
committer | 2018-12-03 17:08:49 -0800 | |
commit | d2382f76ca954761ab985e4e31c8589057f15894 (patch) | |
tree | 271583226679dd4c24477da403ed3d5cb602cb95 /Python/pywarpx/picmi.py | |
parent | 612857dc6a1428fc94e1251a5024953bcf25623b (diff) | |
download | WarpX-d2382f76ca954761ab985e4e31c8589057f15894.tar.gz WarpX-d2382f76ca954761ab985e4e31c8589057f15894.tar.zst WarpX-d2382f76ca954761ab985e4e31c8589057f15894.zip |
Updated picmi implementation
Diffstat (limited to '')
-rw-r--r-- | Python/pywarpx/picmi.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py index 72778e447..81b1543bb 100644 --- a/Python/pywarpx/picmi.py +++ b/Python/pywarpx/picmi.py @@ -515,15 +515,15 @@ class FieldDiagnostic(picmistandard.PICMI_FieldDiagnostic): pywarpx.amr.check_consistency('plot_int', self.period, 'The period must be the same for all simulation frame diagnostics') pywarpx.amr.plot_int = self.period - if 'rho' in self.field_types: + if 'rho' in self.data_list: pywarpx.warpx.plot_rho = 1 - if 'dive' in self.field_types: + if 'dive' in self.data_list: pywarpx.warpx.plot_dive = 1 - if 'divb' in self.field_types: + if 'divb' in self.data_list: pywarpx.warpx.plot_divb = 1 - if 'F' in self.field_types: + if 'F' in self.data_list: pywarpx.warpx.plot_F = 1 - if 'proc_number' in self.field_types: + if 'proc_number' in self.data_list: pywarpx.warpx.plot_proc_number = 1 pywarpx.warpx.plot_raw_fields = self.plot_raw_fields @@ -547,11 +547,11 @@ class ParticleDiagnostic(picmistandard.PICMI_ParticleDiagnostic): pywarpx.amr.check_consistency('plot_int', self.period, 'The period must be the same for all simulation frame diagnostics') pywarpx.amr.plot_int = self.period - if 'part_per_cell' in self.particle_data: + if 'part_per_cell' in self.data_list: pywarpx.warpx.plot_part_per_cell = 1 - if 'part_per_grid' in self.particle_data: + if 'part_per_grid' in self.data_list: pywarpx.warpx.plot_part_per_grid = 1 - if 'part_per_proc' in self.particle_data: + if 'part_per_proc' in self.data_list: pywarpx.warpx.plot_part_per_proc = 1 |