From b15246d41327f3638dcf49535379569b5e14caa8 Mon Sep 17 00:00:00 2001 From: David Grote Date: Thu, 12 Dec 2024 09:39:52 -0800 Subject: [PATCH] Because of the multiple inheritance, the init methods must be explicitly defined --- Python/pywarpx/picmi.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py index 8811541749b..272d2d42e08 100644 --- a/Python/pywarpx/picmi.py +++ b/Python/pywarpx/picmi.py @@ -759,6 +759,18 @@ class AnalyticFluxDistribution( FluxDistributionBase, DensityDistributionBase, ): + """ + Parameters + ---------- + + warpx_inject_from_embedded_boundary: bool + When true, the flux is injected from the embedded boundaries instead + of a plane. + """ + + def init(self, kw): + FluxDistributionBase.init(self, kw) + def initialize_flux_profile_func(self, species, density_scale, source_name): species.add_new_group_attr(source_name, "flux_profile", "parse_flux_function") if density_scale is not None: @@ -781,6 +793,18 @@ class UniformFluxDistribution( FluxDistributionBase, DensityDistributionBase, ): + """ + Parameters + ---------- + + warpx_inject_from_embedded_boundary: bool + When true, the flux is injected from the embedded boundaries instead + of a plane. + """ + + def init(self, kw): + FluxDistributionBase.init(self, kw) + def initialize_flux_profile_func(self, species, density_scale, source_name): species.add_new_group_attr(source_name, "flux_profile", "constant") species.add_new_group_attr(source_name, "flux", self.flux)