We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb2a083 commit 7bf6cf2Copy full SHA for 7bf6cf2
src/Common/Common.jl
@@ -8,7 +8,7 @@ include("models.jl")
8
include("grids.jl")
9
export Eigenmodes,Halfspace
10
export eigenmodes,halfspace
11
-export a2e,a2e2d,a2p,e2p,slicehalf,getfields,a2p2
+export a2e2d,a2p,e2p,slicehalf,getfields
12
"""
13
Eigenmodes(V,W,X,q)
14
@@ -327,8 +327,8 @@ function getfields(ain,bout,em::Eigenmodes,grd::RCWAGrid,xypoints,zpoints,λ,win
327
#convert amplitude vectors to electric fields
328
ex,ey=a2e2d(a+b,em.W)
329
hx,hy=a2e2d(a-b,em.V)
330
- ez=1im*(grd.Kx*hy-grd.Ky*hx)
331
- hz=1im*(grd.Kx*ey-grd.Ky*ex)
+ ez=-1im*(grd.Kx*hy-grd.Ky*hx)
+ hz=-1im*(grd.Kx*ey-grd.Ky*ex)
332
#convert from reciprocal lattice vectors to real space distribution
333
efield[:,:,zind,1]=recipvec2real(Array(grd.nx),Array(grd.ny),Array(ex),nx,ny,windowfunction)
334
efield[:,:,zind,2]=recipvec2real(Array(grd.nx),Array(grd.ny),Array(ey),nx,ny,windowfunction)
0 commit comments