Fix missing index arrays
Former-commit-id: 17499c3583715bf5365771c60c66ba58f175a67a
This commit is contained in:
parent
faa01fcceb
commit
7a4887101a
|
@ -951,7 +951,8 @@ def symz_indexarrays(lMax, npart = 1):
|
||||||
TEč, TMč : (npart * 2 * nelem)-shaped bool ndarray
|
TEč, TMč : (npart * 2 * nelem)-shaped bool ndarray
|
||||||
Mask arrays corresponding to the 'TE' and 'TM' modes, respectively.
|
Mask arrays corresponding to the 'TE' and 'TM' modes, respectively.
|
||||||
"""
|
"""
|
||||||
nelem = lMax * (lMax + 2)
|
my, ny = get_mn_y(lMax)
|
||||||
|
nelem = len(my)
|
||||||
ž = np.arange(2*nelem) # single particle spherical wave indices
|
ž = np.arange(2*nelem) # single particle spherical wave indices
|
||||||
tž = ž // nelem # tž == 0: electric waves, tž == 1: magnetic waves
|
tž = ž // nelem # tž == 0: electric waves, tž == 1: magnetic waves
|
||||||
mž = my[ž%nelem]
|
mž = my[ž%nelem]
|
||||||
|
|
Loading…
Reference in New Issue