aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/picmi.py
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-05-07 16:47:25 -0700
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2019-05-07 16:47:25 -0700
commit1cacbf343306ebc06903f2dd55f76ab62f5d12d1 (patch)
tree161928639119bac7121d8f246e6c0499a5aa3de8 /Python/pywarpx/picmi.py
parent65cfcd2bd9bdc255fbeb15c073cd0b12ca6aa0d5 (diff)
downloadWarpX-1cacbf343306ebc06903f2dd55f76ab62f5d12d1.tar.gz
WarpX-1cacbf343306ebc06903f2dd55f76ab62f5d12d1.tar.zst
WarpX-1cacbf343306ebc06903f2dd55f76ab62f5d12d1.zip
update picmi
Diffstat (limited to 'Python/pywarpx/picmi.py')
-rw-r--r--Python/pywarpx/picmi.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py
index 8c3d70626..a439205a7 100644
--- a/Python/pywarpx/picmi.py
+++ b/Python/pywarpx/picmi.py
@@ -113,6 +113,9 @@ class GaussianBunchDistribution(picmistandard.PICMI_GaussianBunchDistribution):
species.uy = self.centroid_velocity[1]
species.uz = self.centroid_velocity[2]
+ if self.fill_in:
+ species.do_continuous_injection = 1
+
class UniformDistribution(picmistandard.PICMI_UniformDistribution):
def initialize_inputs(self, species_number, layout, species):
@@ -196,6 +199,9 @@ class AnalyticDistribution(picmistandard.PICMI_AnalyticDistribution):
species.uy = self.directed_velocity[1]
species.uz = self.directed_velocity[2]
+ if self.fill_in:
+ species.do_continuous_injection = 1
+
class ParticleListDistribution(picmistandard.PICMI_ParticleListDistribution):
def init(self, kw):