Mercurial > repos > public > sbplib_julia
diff test/testSbpOperators.jl @ 586:8e4f86c4bf75 feature/boundary_ops
Merge in default
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Wed, 02 Dec 2020 13:19:43 +0100 |
parents | 0779713f95a2 4aa7fe13a984 |
children | cc86b920531a e40e7439d1b4 |
line wrap: on
line diff
--- a/test/testSbpOperators.jl Wed Dec 02 13:19:14 2020 +0100 +++ b/test/testSbpOperators.jl Wed Dec 02 13:19:43 2020 +0100 @@ -7,6 +7,14 @@ @testset "SbpOperators" begin +@testset "Stencil" begin + s = SbpOperators.Stencil((-2,2), (1.,2.,2.,3.,4.)) + @test s isa SbpOperators.Stencil{Float64, 5} + + @test eltype(s) == Float64 + @test SbpOperators.scale(s, 2) == SbpOperators.Stencil((-2,2), (2.,4.,4.,6.,8.)) +end + # @testset "apply_quadrature" begin # op = readOperator(sbp_operators_path()*"d2_4th.txt",sbp_operators_path()*"h_4th.txt") # h = 0.5