aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/picmi.py
diff options
context:
space:
mode:
authorGravatar Remi Lehe <remi.lehe@normalesup.org> 2019-07-12 16:45:47 -0700
committerGravatar GitHub <noreply@github.com> 2019-07-12 16:45:47 -0700
commit59ed7a185daa76ab795bfc31b28bbf44ba693edd (patch)
treeabc8036bc4a4c2f81c8ca91eeb454e8ecac61e42 /Python/pywarpx/picmi.py
parent9c96b45f224cd554726faeac1f2641a2730f233b (diff)
parent2ad0aca22bc7343be94d7eb248344b797a37ef93 (diff)
downloadWarpX-59ed7a185daa76ab795bfc31b28bbf44ba693edd.tar.gz
WarpX-59ed7a185daa76ab795bfc31b28bbf44ba693edd.tar.zst
WarpX-59ed7a185daa76ab795bfc31b28bbf44ba693edd.zip
Merge pull request #212 from ECP-WarpX/python_update
Python interface update
Diffstat (limited to 'Python/pywarpx/picmi.py')
-rw-r--r--Python/pywarpx/picmi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py
index acf730e5a..ac272089c 100644
--- a/Python/pywarpx/picmi.py
+++ b/Python/pywarpx/picmi.py
@@ -259,13 +259,13 @@ class CylindricalGrid(picmistandard.PICMI_CylindricalGrid):
assert self.lower_bound[0] >= 0., Exception('Lower radial boundary must be >= 0.')
assert self.bc_rmin != 'periodic' and self.bc_rmax != 'periodic', Exception('Radial boundaries can not be periodic')
- assert self.n_azimuthal_modes is None or self.n_azimuthal_modes == 1, Exception('Only one azimuthal mode supported')
# Geometry
pywarpx.geometry.coord_sys = 1 # RZ
pywarpx.geometry.is_periodic = '0 %d'%(self.bc_zmin=='periodic') # Is periodic?
pywarpx.geometry.prob_lo = self.lower_bound # physical domain
pywarpx.geometry.prob_hi = self.upper_bound
+ pywarpx.warpx.nmodes = self.n_azimuthal_modes
if self.moving_window_velocity is not None and np.any(np.not_equal(self.moving_window_velocity, 0.)):
pywarpx.warpx.do_moving_window = 1