Mercurial > repos > public > sbplib_julia
comparison test/SbpOperators/SbpOperators_test.jl @ 714:11a444d6fc93 feature/selectable_tests
Remove module wrapping testsets. They are now automatically added through the folders
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sat, 20 Feb 2021 21:15:52 +0100 |
parents | df88aee35bb9 |
children |
comparison
equal
deleted
inserted
replaced
713:be648c6d6686 | 714:11a444d6fc93 |
---|---|
12 import Sbplib.SbpOperators.BoundaryOperator | 12 import Sbplib.SbpOperators.BoundaryOperator |
13 import Sbplib.SbpOperators.boundary_operator | 13 import Sbplib.SbpOperators.boundary_operator |
14 import Sbplib.SbpOperators.even | 14 import Sbplib.SbpOperators.even |
15 import Sbplib.SbpOperators.odd | 15 import Sbplib.SbpOperators.odd |
16 | 16 |
17 | |
18 @testset "SbpOperators" begin | |
19 | 17 |
20 @testset "Stencil" begin | 18 @testset "Stencil" begin |
21 s = Stencil((-2,2), (1.,2.,2.,3.,4.)) | 19 s = Stencil((-2,2), (1.,2.,2.,3.,4.)) |
22 @test s isa Stencil{Float64, 5} | 20 @test s isa Stencil{Float64, 5} |
23 | 21 |
826 @test d_s*v ≈ v∂y[:,1] atol = 1e-13 | 824 @test d_s*v ≈ v∂y[:,1] atol = 1e-13 |
827 @test d_n*v ≈ -v∂y[:,end] atol = 1e-13 | 825 @test d_n*v ≈ -v∂y[:,end] atol = 1e-13 |
828 end | 826 end |
829 end | 827 end |
830 end | 828 end |
831 | |
832 end |