aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/picmi.py
diff options
context:
space:
mode:
authorGravatar NeilZaim <49716072+NeilZaim@users.noreply.github.com> 2021-01-15 00:11:34 +0100
committerGravatar GitHub <noreply@github.com> 2021-01-14 15:11:34 -0800
commit485eb4431010cb8f684141b343565509a9958eae (patch)
tree3331e4f48f1e48a969e5d139fb8300fede859f16 /Python/pywarpx/picmi.py
parent18ba2a1283b78f413357e8ee5d9c36ea87959f4a (diff)
downloadWarpX-485eb4431010cb8f684141b343565509a9958eae.tar.gz
WarpX-485eb4431010cb8f684141b343565509a9958eae.tar.zst
WarpX-485eb4431010cb8f684141b343565509a9958eae.zip
Unify intervals notation (#1485)
* Unify intervals notation * Fix diagnostic intervals with PICMI * Use new syntax in updated Larmor test * Update PICMI to comply with the standard * Update new hybrid test * Update particles_in_PML test input files
Diffstat (limited to 'Python/pywarpx/picmi.py')
-rw-r--r--Python/pywarpx/picmi.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py
index ed5540eca..7eb4eeaec 100644
--- a/Python/pywarpx/picmi.py
+++ b/Python/pywarpx/picmi.py
@@ -664,7 +664,7 @@ class Simulation(picmistandard.PICMI_Simulation):
self.use_filter = kw.pop('warpx_use_filter', None)
self.serialize_ics = kw.pop('warpx_serialize_ics', None)
self.do_dynamic_scheduling = kw.pop('warpx_do_dynamic_scheduling', None)
- self.load_balance_int = kw.pop('warpx_load_balance_int', None)
+ self.load_balance_intervals = kw.pop('warpx_load_balance_intervals', None)
self.load_balance_with_sfc = kw.pop('warpx_load_balance_with_sfc', None)
self.use_fdtd_nci_corr = kw.pop('warpx_use_fdtd_nci_corr', None)
@@ -694,7 +694,7 @@ class Simulation(picmistandard.PICMI_Simulation):
pywarpx.warpx.serialize_ics = self.serialize_ics
pywarpx.warpx.do_dynamic_scheduling = self.do_dynamic_scheduling
- pywarpx.warpx.load_balance_int = self.load_balance_int
+ pywarpx.warpx.load_balance_intervals = self.load_balance_intervals
pywarpx.warpx.load_balance_with_sfc = self.load_balance_with_sfc
pywarpx.particles.use_fdtd_nci_corr = self.use_fdtd_nci_corr
@@ -799,7 +799,7 @@ class _WarpX_FieldDiagnostic(picmistandard.PICMI_FieldDiagnostic):
self.diagnostic.format = self.format
self.diagnostic.openpmd_backend = self.openpmd_backend
self.diagnostic.dump_rz_modes = self.dump_rz_modes
- self.diagnostic.period = self.period
+ self.diagnostic.intervals = self.period
self.diagnostic.diag_lo = self.lower_bound
self.diagnostic.diag_hi = self.upper_bound
if self.number_of_cells is not None:
@@ -907,7 +907,7 @@ class ParticleDiagnostic(picmistandard.PICMI_ParticleDiagnostic):
self.diagnostic.diag_type = 'Full'
self.diagnostic.format = self.format
self.diagnostic.openpmd_backend = self.openpmd_backend
- self.diagnostic.period = self.period
+ self.diagnostic.intervals = self.period
# --- Use a set to ensure that fields don't get repeated.
variables = set()