aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/picmi.py
diff options
context:
space:
mode:
authorGravatar Roelof Groenewald <40245517+roelof-groenewald@users.noreply.github.com> 2023-03-30 08:55:56 -0700
committerGravatar GitHub <noreply@github.com> 2023-03-30 08:55:56 -0700
commitcbb5637cff96754ce976aa36f042f39e678419d7 (patch)
tree2961593c420ab56b433ede657aa3abf423180e60 /Python/pywarpx/picmi.py
parent014f9e3c29386f577bb93541956bf0a1db9e6df7 (diff)
downloadWarpX-cbb5637cff96754ce976aa36f042f39e678419d7.tar.gz
WarpX-cbb5637cff96754ce976aa36f042f39e678419d7.tar.zst
WarpX-cbb5637cff96754ce976aa36f042f39e678419d7.zip
Add random seed specification to `picmi` (#3793)
Diffstat (limited to 'Python/pywarpx/picmi.py')
-rw-r--r--Python/pywarpx/picmi.py6
1 files changed, 6 insertions, 0 deletions
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