Mercurial > repos > public > sbplib_julia
comparison 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 |
comparison
equal
deleted
inserted
replaced
585:0e1a95b35999 | 586:8e4f86c4bf75 |
---|---|
4 using Sbplib.RegionIndices | 4 using Sbplib.RegionIndices |
5 using Sbplib.LazyTensors | 5 using Sbplib.LazyTensors |
6 using LinearAlgebra | 6 using LinearAlgebra |
7 | 7 |
8 @testset "SbpOperators" begin | 8 @testset "SbpOperators" begin |
9 | |
10 @testset "Stencil" begin | |
11 s = SbpOperators.Stencil((-2,2), (1.,2.,2.,3.,4.)) | |
12 @test s isa SbpOperators.Stencil{Float64, 5} | |
13 | |
14 @test eltype(s) == Float64 | |
15 @test SbpOperators.scale(s, 2) == SbpOperators.Stencil((-2,2), (2.,4.,4.,6.,8.)) | |
16 end | |
9 | 17 |
10 # @testset "apply_quadrature" begin | 18 # @testset "apply_quadrature" begin |
11 # op = readOperator(sbp_operators_path()*"d2_4th.txt",sbp_operators_path()*"h_4th.txt") | 19 # op = readOperator(sbp_operators_path()*"d2_4th.txt",sbp_operators_path()*"h_4th.txt") |
12 # h = 0.5 | 20 # h = 0.5 |
13 # | 21 # |