From 9d35f5e58c034e04f6aca4ef3773d7be27eda0c4 Mon Sep 17 00:00:00 2001 From: David Grote Date: Mon, 22 Jan 2024 16:10:29 -0800 Subject: [PATCH] Add warpx_used_inputs_file in Python input (#4618) --- Python/pywarpx/picmi.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py index b33a1a08899..857f857a554 100644 --- a/Python/pywarpx/picmi.py +++ b/Python/pywarpx/picmi.py @@ -1897,6 +1897,9 @@ class Simulation(picmistandard.PICMI_Simulation): warpx_sort_bin_size: list of int, optional (default 1 1 1) If `sort_intervals` is activated and `sort_particles_for_deposition` is false, particles are sorted in bins of `sort_bin_size` cells. In 2D, only the first two elements are read. + + warpx_used_inputs_file: string, optional + The name of the text file that the used input parameters is written to, """ # Set the C++ WarpX interface (see _libwarpx.LibWarpX) as an extension to @@ -1939,6 +1942,7 @@ def init(self, kw): self.sort_particles_for_deposition = kw.pop('warpx_sort_particles_for_deposition', None) self.sort_idx_type = kw.pop('warpx_sort_idx_type', None) self.sort_bin_size = kw.pop('warpx_sort_bin_size', None) + self.used_inputs_file = kw.pop('warpx_used_inputs_file', None) self.collisions = kw.pop('warpx_collisions', None) self.embedded_boundary = kw.pop('warpx_embedded_boundary', None) @@ -1991,6 +1995,7 @@ def initialize_inputs(self): 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.used_inputs_file = self.used_inputs_file pywarpx.warpx.do_dynamic_scheduling = self.do_dynamic_scheduling