Skip to content

Commit ed3a364

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Common/Common.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ function getfields(ain,bout,em::Eigenmodes,grd::RCWAGrid,xypoints,zpoints,λ,εz
358358
ex,ey=a2e2d(a+b,em.W)
359359
hx,hy=a2e2d(a-b,em.V)
360360
ez=1im*εzz\(grd.Kx*hy-grd.Ky*hx)
361-
hz=1im*(grd.Kx*ey-grd.Ky*ex)
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)