diff options
author | 2022-07-07 14:28:44 -0700 | |
---|---|---|
committer | 2022-07-07 14:28:44 -0700 | |
commit | 7b165605f1b5e308d7da41db9941ac75793b05aa (patch) | |
tree | 2964fc5e8fdab54fe41abc9d6a4f8640ec96e957 /Python | |
parent | 9d67de7fc56b7f1ed076e3b767c87277d7e7c145 (diff) | |
download | WarpX-7b165605f1b5e308d7da41db9941ac75793b05aa.tar.gz WarpX-7b165605f1b5e308d7da41db9941ac75793b05aa.tar.zst WarpX-7b165605f1b5e308d7da41db9941ac75793b05aa.zip |
Parse the quantity `zmax_plasma_to_compute_max_step` in PICMI (#3217)
* Parse the quantity `zmax_plasma_to_compute_max_step`
* Apply review comments
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pywarpx/picmi.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 |