Skip to content

Commit

Permalink
update test notation
Browse files Browse the repository at this point in the history
  • Loading branch information
Class04 Course committed Jan 18, 2024
1 parent aac3f1c commit 2673037
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/1D_maxwell_additive_source_lossy_layer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,6 @@ function FDTD_1D(nx_, nt_, nvis_; src="exp", do_visu=false, do_test=false)
return Array(E_z)
end

FDTD_1D(200, 450, 10; do_visu=true, src="exp")
#FDTD_1D(200, 450, 10; do_visu=true, src="exp")
#FDTD_1D(200, 450, 10; do_visu=true, src="sin")
#FDTD_1D(200, 450, 10; do_visu=false, do_test=true, src="exp")
2 changes: 1 addition & 1 deletion test/test1D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Ez_ref = zeros(Float32, nx_ + 1)
Ez_ref = load("../test/ref_Ez_1D_cpu.jld")
array_value = Ez_ref["data"]

@testset "Reference Test: Ez_ref = Ez" begin
@testset "Reference Test: Ez_ref Ez" begin
@test isapprox(Ez, array_value)
end

2 changes: 1 addition & 1 deletion test/test2D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ Hz_ref = zeros(Float32, nx_pml, ny_pml)
Hz_ref = load("../test/ref_Hz_2D_cpu.jld")
array_value = Hz_ref["data"]

@testset "Reference Test: Hz_ref = Hz" begin
@testset "Reference Test: Hz_ref Hz" begin
@test isapprox(Hz, array_value)
end
2 changes: 1 addition & 1 deletion test/test3D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ Hz_ref = zeros(Float32, nx_pml, ny_pml, nz_pml - 1)
Hz_ref = load("../test/ref_Hz_3D_cpu.jld")
array_value = Hz_ref["data"]

@testset "Reference Test: Hz_ref = Hz" begin
@testset "Reference Test: Hz_ref Hz" begin
@test isapprox(Hz, array_value)
end

0 comments on commit 2673037

Please sign in to comment.