Skip to content

Commit

Permalink
Clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
oshapoval committed Dec 11, 2024
1 parent 4ccbb6d commit d594d71
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Python/pywarpx/picmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,9 +710,8 @@ def init(self, kw):
"warpx_inject_from_embedded_boundary", False
)

def flux_profile_and_func_initialize(self, species, density_scale, source_name
):
""" Initialize the flux profile and flux function."""
def initialize_flux_profile_func(self, species, density_scale, source_name):
""" Initialize the flux profile and flux function."""
pass

def distribution_initialize_inputs(
Expand All @@ -722,7 +721,7 @@ def distribution_initialize_inputs(
self.set_mangle_dict()
self.set_species_attributes(species, layout, source_name)

self.flux_profile_and_func_initialize(species, density_scale, source_name)
self.initialize_flux_profile_func(species, density_scale, source_name)

if not self.inject_from_embedded_boundary:
species.add_new_group_attr(
Expand Down Expand Up @@ -755,7 +754,7 @@ def distribution_initialize_inputs(
class AnalyticFluxDistribution(
picmistandard.PICMI_AnalyticFluxDistribution, FluxDistributionBase, DensityDistributionBase
):
def flux_profile_and_func_initialize(self, species, density_scale, source_name
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:
Expand All @@ -775,7 +774,7 @@ def flux_profile_and_func_initialize(self, species, density_scale, source_name
class UniformFluxDistribution(
picmistandard.PICMI_UniformFluxDistribution, FluxDistributionBase, DensityDistributionBase
):
def flux_profile_and_func_initialize(self, species, density_scale, source_name
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)
Expand Down

0 comments on commit d594d71

Please sign in to comment.