aboutsummaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-07-12 16:07:42 -0700
committerGravatar GitHub <noreply@github.com> 2019-07-12 16:07:42 -0700
commit9c96b45f224cd554726faeac1f2641a2730f233b (patch)
tree137b5e6d6b9b1d3a06f051aa13338b97da8c17cb /Python
parent549db2f2f57a1bf5a00ebcc3f9faf7da8908734c (diff)
parent54a1d8da23ae03ab2d1061363d0b56cbc32e4213 (diff)
downloadWarpX-9c96b45f224cd554726faeac1f2641a2730f233b.tar.gz
WarpX-9c96b45f224cd554726faeac1f2641a2730f233b.tar.zst
WarpX-9c96b45f224cd554726faeac1f2641a2730f233b.zip
Merge pull request #211 from ECP-WarpX/picmi_minor
fix some typos in pywarpx
Diffstat (limited to 'Python')
-rw-r--r--Python/pywarpx/picmi.py17
1 files changed, 6 insertions, 11 deletions
diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py
index 3cbefc920..acf730e5a 100644
--- a/Python/pywarpx/picmi.py
+++ b/Python/pywarpx/picmi.py
@@ -381,16 +381,11 @@ class ElectromagneticSolver(picmistandard.PICMI_ElectromagneticSolver):
pywarpx.warpx.pml_ncell = self.pml_ncell
# --- Same method names are used, though mapped to lower case.
- pywarpx.warpx.maxwell_fdtd_solver = self.method
+ pywarpx.algo.maxwell_fdtd_solver = self.method
if self.cfl is not None:
pywarpx.warpx.cfl = self.cfl
- if self.stencil_order is not None:
- pywarpx.interpolation.nox = self.stencil_order[0]
- pywarpx.interpolation.noy = self.stencil_order[1]
- pywarpx.interpolation.noz = self.stencil_order[2]
-
class ElectrostaticSolver(picmistandard.PICMI_ElectrostaticSolver):
def initialize_inputs(self):
@@ -407,7 +402,7 @@ class GaussianLaser(picmistandard.PICMI_GaussianLaser):
self.laser.profile = "Gaussian"
self.laser.wavelength = self.wavelength # The wavelength of the laser (in meters)
self.laser.e_max = self.E0 # Maximum amplitude of the laser field (in V/m)
- self.laser.polarization = [np.cos(self.polarization_angle), np.sin(self.polarization_angle), 0.] # The main polarization vector
+ self.laser.polarization = self.polarization_direction # The main polarization vector
self.laser.profile_waist = self.waist # The waist of the laser (in meters)
self.laser.profile_duration = self.duration # The duration of the laser (in seconds)
self.laser.zeta = self.zeta
@@ -453,7 +448,7 @@ class Simulation(picmistandard.PICMI_Simulation):
if self.gamma_boost is not None:
pywarpx.warpx.gamma_boost = self.gamma_boost
- pywarpx.warpx.boost_direction = 'z'
+ pywarpx.warpx.boost_direction = None
pywarpx.amr.plot_int = self.plot_int
pywarpx.amr.plot_file = self.plot_file
@@ -570,7 +565,7 @@ class FieldDiagnostic(picmistandard.PICMI_FieldDiagnostic):
if self.write_dir is not None:
plot_file = self.write_dir + '/plotfiles/plt'
pywarpx.amr.check_consistency('plot_file', plot_file, 'The plot directory must be the same for all simulation frame diagnostics')
- pywarpx.warpx.plot_file = plot_file
+ pywarpx.amr.plot_file = plot_file
class ElectrostaticFieldDiagnostic(picmistandard.PICMI_ElectrostaticFieldDiagnostic):
def initialize_inputs(self):
@@ -581,7 +576,7 @@ class ElectrostaticFieldDiagnostic(picmistandard.PICMI_ElectrostaticFieldDiagnos
if self.write_dir is not None:
plot_file = self.write_dir + '/plotfiles/plt'
pywarpx.amr.check_consistency('plot_file', plot_file, 'The plot directory must be the same for all simulation frame diagnostics')
- pywarpx.warpx.plot_file = plot_file
+ pywarpx.amr.plot_file = plot_file
class ParticleDiagnostic(picmistandard.PICMI_ParticleDiagnostic):
@@ -600,7 +595,7 @@ class ParticleDiagnostic(picmistandard.PICMI_ParticleDiagnostic):
if self.write_dir is not None:
plot_file = self.write_dir + '/plotfiles/plt'
pywarpx.amr.check_consistency('plot_file', plot_file, 'The plot directory must be the same for all simulation frame diagnostics')
- pywarpx.warpx.plot_file = plot_file
+ pywarpx.amr.plot_file = plot_file
# ----------------------------