From 7b165605f1b5e308d7da41db9941ac75793b05aa Mon Sep 17 00:00:00 2001 From: Remi Lehe Date: Thu, 7 Jul 2022 14:28:44 -0700 Subject: Parse the quantity `zmax_plasma_to_compute_max_step` in PICMI (#3217) * Parse the quantity `zmax_plasma_to_compute_max_step` * Apply review comments --- Python/pywarpx/picmi.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Python/pywarpx/picmi.py') diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py index a79a2d7a1..95c0d452a 100644 --- a/Python/pywarpx/picmi.py +++ b/Python/pywarpx/picmi.py @@ -1041,6 +1041,7 @@ class Simulation(picmistandard.PICMI_Simulation): self.use_fdtd_nci_corr = kw.pop('warpx_use_fdtd_nci_corr', None) self.amr_check_input = kw.pop('warpx_amr_check_input', None) self.amr_restart = kw.pop('warpx_amr_restart', None) + self.zmax_plasma_to_compute_max_step = kw.pop('warpx_zmax_plasma_to_compute_max_step', None) self.collisions = kw.pop('warpx_collisions', None) self.embedded_boundary = kw.pop('warpx_embedded_boundary', None) @@ -1065,6 +1066,8 @@ class Simulation(picmistandard.PICMI_Simulation): pywarpx.warpx.gamma_boost = self.gamma_boost pywarpx.warpx.boost_direction = 'z' + pywarpx.warpx.zmax_plasma_to_compute_max_step = self.zmax_plasma_to_compute_max_step + pywarpx.algo.current_deposition = self.current_deposition_algo pywarpx.algo.charge_deposition = self.charge_deposition_algo pywarpx.algo.field_gathering = self.field_gathering_algo -- cgit v1.2.3