From cbb5637cff96754ce976aa36f042f39e678419d7 Mon Sep 17 00:00:00 2001 From: Roelof Groenewald <40245517+roelof-groenewald@users.noreply.github.com> Date: Thu, 30 Mar 2023 08:55:56 -0700 Subject: Add random seed specification to `picmi` (#3793) --- Python/pywarpx/picmi.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Python/pywarpx/picmi.py') diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py index 90d4a256f..d308085b0 100644 --- a/Python/pywarpx/picmi.py +++ b/Python/pywarpx/picmi.py @@ -1513,6 +1513,9 @@ class Simulation(picmistandard.PICMI_Simulation): Controls the random numbers used for initialization. This parameter should only be used for testing and continuous integration. + warpx_random_seed: string or int, optional + (See documentation) + warpx_do_dynamic_scheduling: bool, default=True Whether to do dynamic scheduling with OpenMP @@ -1586,6 +1589,7 @@ class Simulation(picmistandard.PICMI_Simulation): self.field_centering_order = kw.pop('warpx_field_centering_order', None) self.current_centering_order = kw.pop('warpx_current_centering_order', None) self.serialize_initial_conditions = kw.pop('warpx_serialize_initial_conditions', None) + self.random_seed = kw.pop('warpx_random_seed', None) self.do_dynamic_scheduling = kw.pop('warpx_do_dynamic_scheduling', None) self.load_balance_intervals = kw.pop('warpx_load_balance_intervals', None) self.load_balance_efficiency_ratio_threshold = kw.pop('warpx_load_balance_efficiency_ratio_threshold', None) @@ -1644,6 +1648,8 @@ class Simulation(picmistandard.PICMI_Simulation): pywarpx.warpx.do_multi_J = self.do_multi_J pywarpx.warpx.do_multi_J_n_depositions = self.do_multi_J_n_depositions pywarpx.warpx.serialize_initial_conditions = self.serialize_initial_conditions + pywarpx.warpx.random_seed = self.random_seed + pywarpx.warpx.do_dynamic_scheduling = self.do_dynamic_scheduling pywarpx.particles.use_fdtd_nci_corr = self.use_fdtd_nci_corr -- cgit v1.2.3