Skip to content

Commit 67fbd51

Browse files
authored
Merge pull request #8 from lxvm/patch-1
Update SRCWA.jl
2 parents 4ea2078 + 824a78d commit 67fbd51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SRCWA/SRCWA.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ lation)
6464
function srcwa_amplitudes(ψin,m::RCWAModel,grd::RCWAGrid,λ)
6565
mtr=[scattermatrix_layer(eigenmodes(grd,λ,l),grd.V0) for l in m.layers] #compute scattering matrices of layers
6666
ref=scattermatrix_ref(halfspace(grd.Kx,grd.Ky,m.εsup,λ),grd.V0) #superstrate and substrate halfspaces
67-
tra=scattermatrix_ref(halfspace(grd.Kx,grd.Ky,m.εsub,λ),grd.V0)
67+
tra=scattermatrix_tra(halfspace(grd.Kx,grd.Ky,m.εsub,λ),grd.V0)
6868
mtr=cat(ref,mtr,tra,dims=1) # store all matrices in an array
6969
a,b=srcwa_amplitudes(ψin,grd,mtr)
7070
return a,b

0 commit comments

Comments
 (0)