dx_prop should be a scalar?
This commit is contained in:
parent
bedec489aa
commit
2289c6d116
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ def solve_waveguide_mode(mode_number: int,
|
||||||
|
|
||||||
# Find dx in propagation direction
|
# Find dx in propagation direction
|
||||||
dxab_forward = numpy.array([dx[order[2]][slices[order[2]]] for dx in dxes])
|
dxab_forward = numpy.array([dx[order[2]][slices[order[2]]] for dx in dxes])
|
||||||
dx_prop = 0.5 * sum(dxab_forward)
|
dx_prop = 0.5 * sum(dxab_forward)[0]
|
||||||
|
|
||||||
# Reduce to 2D and solve the 2D problem
|
# Reduce to 2D and solve the 2D problem
|
||||||
args_2d = {
|
args_2d = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue