aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/picmi.py
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-05-07 13:32:18 -0700
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2019-05-07 13:32:18 -0700
commit5e0a445165ec7f9796c1a37f11b0e3ec050a40db (patch)
tree80570bfd3beb4291df5b3b121187da2c67fcaf31 /Python/pywarpx/picmi.py
parent2ddaf2f8270247b847041da886adefb4f96714c1 (diff)
downloadWarpX-5e0a445165ec7f9796c1a37f11b0e3ec050a40db.tar.gz
WarpX-5e0a445165ec7f9796c1a37f11b0e3ec050a40db.tar.zst
WarpX-5e0a445165ec7f9796c1a37f11b0e3ec050a40db.zip
updated Examples and picmi
Diffstat (limited to 'Python/pywarpx/picmi.py')
-rw-r--r--Python/pywarpx/picmi.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py
index a5d9fba87..8c3d70626 100644
--- a/Python/pywarpx/picmi.py
+++ b/Python/pywarpx/picmi.py
@@ -153,14 +153,6 @@ class UniformDistribution(picmistandard.PICMI_UniformDistribution):
species.uy = self.directed_velocity[1]
species.uz = self.directed_velocity[2]
- if self.fill_in:
- pywarpx.warpx.do_plasma_injection = 1
- if not hasattr(pywarpx.warpx, 'injected_plasma_species'):
- pywarpx.warpx.injected_plasma_species = []
-
- pywarpx.warpx.injected_plasma_species.append(species_number)
- pywarpx.warpx.num_injected_species = len(pywarpx.warpx.injected_plasma_species)
-
class AnalyticDistribution(picmistandard.PICMI_AnalyticDistribution):
def initialize_inputs(self, species_number, layout, species):
@@ -204,14 +196,6 @@ class AnalyticDistribution(picmistandard.PICMI_AnalyticDistribution):
species.uy = self.directed_velocity[1]
species.uz = self.directed_velocity[2]
- if self.fill_in:
- pywarpx.warpx.do_plasma_injection = 1
- if not hasattr(pywarpx.warpx, 'injected_plasma_species'):
- pywarpx.warpx.injected_plasma_species = []
-
- pywarpx.warpx.injected_plasma_species.append(species_number)
- pywarpx.warpx.num_injected_species = len(pywarpx.warpx.injected_plasma_species)
-
class ParticleListDistribution(picmistandard.PICMI_ParticleListDistribution):
def init(self, kw):