Skip to content

Commit

Permalink
Add warpx_used_inputs_file in Python input (ECP-WarpX#4618)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgrote authored Jan 23, 2024
1 parent c5377b7 commit 9d35f5e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Python/pywarpx/picmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 9d35f5e

Please sign in to comment.