Skip to content

Commit 682e0df

Browse files
author
Jon Schlipf
committed
testset fix
1 parent 364601e commit 682e0df

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

test/runtests.jl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ using RigorousCoupledWaveAnalysis,LinearAlgebra
22
using Test
33
include("analytical.jl")
44
@testset "VerticalIncidence" begin
5-
n1=rand()*10+10im*rand()
6-
n2=rand()*10+10im*rand()
5+
n1=rand()*10
6+
n2=rand()*10
77
mdl=RCWAModel([],ConstantPerm(n1^2),ConstantPerm(n2^2))
88
grd=rcwagrid(0,0,100,100,1E-3,rand()*360,1000,ConstantPerm(n1^2))
99
ψte,~=rcwasource(grd,n1)
@@ -15,8 +15,8 @@ R0,~,T0,~=fresnelPower(n1,n2,0)
1515
end
1616

1717
@testset "GrazingIncidence" begin
18-
n1=rand()*10+10im*rand()
19-
n2=n1+rand()*10+10im*rand()
18+
n1=rand()*10
19+
n2=n1+rand()*10
2020
θ=1+88rand()
2121
mdl=RCWAModel([],ConstantPerm(n1^2),ConstantPerm(n2^2))
2222
grd=rcwagrid(0,0,100,100,θ,rand()*360,1000,ConstantPerm(n1^2))
@@ -33,9 +33,9 @@ R0s,R0p,T0s,T0p=fresnelPower(n1,n2,θ)
3333
end
3434

3535
@testset "Fabryperot" begin
36-
n1=1+1rand()+1im*rand()
36+
n1=1+1rand()
3737
n2=n1+rand()+1im*rand() #n2>n1 against TIR
38-
n3=n1+rand()+1im*rand() #n3>n1 against TIR
38+
n3=n1+rand() #n3>n1 against TIR
3939
θ=88rand()+1
4040
λ=1000rand()
4141
thickness=100rand()
@@ -54,7 +54,7 @@ R0s,R0p,T0s,T0p=fabryperot(n1,n2,n3,2π/λ,thickness,θ)
5454
end
5555

5656
@testset "unitySource" begin
57-
n1=1+10rand()+10rand()*1im
57+
n1=1+10rand()
5858
λ=1000rand()
5959
θ=88rand()+1
6060
α=360rand()
@@ -88,10 +88,10 @@ end
8888

8989

9090
@testset "RT_ScatVSETM_conservation_simple" begin
91-
eps1=10rand()+10im*rand()
91+
eps1=10rand()
9292
eps2=10rand()
9393
eps3=10rand()
94-
eps4=10rand()+10im*rand()
94+
eps4=10rand()
9595
λ=1000rand()
9696
mdl=RCWAModel([PatternedLayer(100rand(),[ConstantPerm(eps2),ConstantPerm(eps3)],[Circle(rand())])],ConstantPerm(eps1),ConstantPerm(eps4))
9797
grd=rcwagrid(1,1,100rand(),100rand(),88rand()+.1,360rand(),λ,ConstantPerm(eps1))

0 commit comments

Comments
 (0)