Skip to content

Commit 0f56257

Browse files
author
Jon Schlipf
committed
sign
1 parent 6c33633 commit 0f56257

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Common/Common.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,8 @@ function getfields(ain,bout,em::Eigenmodes,grd::RCWAGrid,xypoints,zpoints,λ,εz
357357
#convert amplitude vectors to electric fields
358358
ex,ey=a2e2d(a+b,em.W)
359359
hx,hy=a2e2d(a-b,em.V)
360-
ez=-1im*εzz\(grd.Kx*hy-grd.Ky*hx)
361-
hz=-1im*(grd.Kx*ey-grd.Ky*ex)
360+
ez=1im*εzz\(grd.Kx*hy-grd.Ky*hx)
361+
hz=1im*(grd.Kx*ey-grd.Ky*ex)
362362
#convert from reciprocal lattice vectors to real space distribution
363363
efield[:,:,zind,1]=recipvec2real(Array(grd.nx),Array(grd.ny),Array(ex),nx,ny,windowfunction)
364364
efield[:,:,zind,2]=recipvec2real(Array(grd.nx),Array(grd.ny),Array(ey),nx,ny,windowfunction)

0 commit comments

Comments
 (0)