aboutsummaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorGravatar Igor Andriyash <igor.andriyash@gmail.com> 2020-10-08 19:07:30 +0200
committerGravatar GitHub <noreply@github.com> 2020-10-08 10:07:30 -0700
commit5c485cdf0d602b9b039c69f828cf2040de49f875 (patch)
tree7367aa0c7d6648f90bf596544f164e5da21f2907 /Python
parentb7996947408d0d9c4a01e7c8a19bb9dbf905c341 (diff)
downloadWarpX-5c485cdf0d602b9b039c69f828cf2040de49f875.tar.gz
WarpX-5c485cdf0d602b9b039c69f828cf2040de49f875.tar.zst
WarpX-5c485cdf0d602b9b039c69f828cf2040de49f875.zip
Add laser phase to gaussian profile (#1155)
* added the phase argument for the gaussian laser * removed signature * added laser phase to picmi api * added doc string for phi0 * Update parameters.rst typo fix Co-authored-by: Remi Lehe <remi.lehe@normalesup.org>
Diffstat (limited to 'Python')
-rw-r--r--Python/pywarpx/picmi.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py
index d23d97606..72d0ce010 100644
--- a/Python/pywarpx/picmi.py
+++ b/Python/pywarpx/picmi.py
@@ -541,6 +541,7 @@ class GaussianLaser(picmistandard.PICMI_GaussianLaser):
self.laser.zeta = self.zeta
self.laser.beta = self.beta
self.laser.phi2 = self.phi2
+ self.laser.phi0 = self.phi0
self.laser.do_continuous_injection = self.fill_in