diff options
author | 2021-01-22 17:17:14 -0800 | |
---|---|---|
committer | 2021-01-22 17:17:14 -0800 | |
commit | d3615c5bef8e5f15e147f301cb2809bf842ffc80 (patch) | |
tree | 20996ee0ba9b0fccf720a95de661fb5e6119fed4 /Python/pywarpx | |
parent | 54c463af5dfd3db55fc69abb60e80100687a04f7 (diff) | |
download | WarpX-d3615c5bef8e5f15e147f301cb2809bf842ffc80.tar.gz WarpX-d3615c5bef8e5f15e147f301cb2809bf842ffc80.tar.zst WarpX-d3615c5bef8e5f15e147f301cb2809bf842ffc80.zip |
Cleaned up field diagnostic in picmi interface (#1649)
Diffstat (limited to 'Python/pywarpx')
-rw-r--r-- | Python/pywarpx/picmi.py | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py index 7eb4eeaec..c97be09e8 100644 --- a/Python/pywarpx/picmi.py +++ b/Python/pywarpx/picmi.py @@ -770,7 +770,7 @@ class Simulation(picmistandard.PICMI_Simulation): # ---------------------------- -class _WarpX_FieldDiagnostic(picmistandard.PICMI_FieldDiagnostic): +class FieldDiagnostic(picmistandard.PICMI_FieldDiagnostic): def init(self, kw): self.plot_raw_fields = kw.pop('warpx_plot_raw_fields', None) @@ -858,16 +858,7 @@ class _WarpX_FieldDiagnostic(picmistandard.PICMI_FieldDiagnostic): self.diagnostic.file_prefix = write_dir + '/' + file_prefix -class FieldDiagnostic(_WarpX_FieldDiagnostic, picmistandard.PICMI_FieldDiagnostic): - pass - - -class ElectrostaticFieldDiagnostic(_WarpX_FieldDiagnostic, picmistandard.PICMI_ElectrostaticFieldDiagnostic): - def initialize_inputs(self): - if 'phi' in self.data_list: - # --- phi is not supported by WarpX, but is in the default data_list - self.data_list.remove('phi') - _WarpX_FieldDiagnostic.initialize_inputs(self) +ElectrostaticFieldDiagnostic = FieldDiagnostic class ParticleDiagnostic(picmistandard.PICMI_ParticleDiagnostic): |