comparison test/SbpOperators/volumeops/volume_operator_test.jl @ 1291:356ec6a72974 refactor/grids

Implement changes in SbpOperators
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 07 Mar 2023 09:48:00 +0100
parents 7d52c4835d15
children 43aaf710463e
comparison
equal deleted inserted replaced
1290:31d0b7638304 1291:356ec6a72974
9 import Sbplib.SbpOperators.VolumeOperator 9 import Sbplib.SbpOperators.VolumeOperator
10 import Sbplib.SbpOperators.odd 10 import Sbplib.SbpOperators.odd
11 import Sbplib.SbpOperators.even 11 import Sbplib.SbpOperators.even
12 12
13 13
14 @test_skip @testset "VolumeOperator" begin 14 @testset "VolumeOperator" begin
15 inner_stencil = CenteredStencil(1/4, 2/4, 1/4) 15 inner_stencil = CenteredStencil(1/4, 2/4, 1/4)
16 closure_stencils = (Stencil(1/2, 1/2; center=1), Stencil(2.,1.; center=2)) 16 closure_stencils = (Stencil(1/2, 1/2; center=1), Stencil(2.,1.; center=2))
17 g = EquidistantGrid(11,0.,1.) 17 g = equidistant_grid(11,0.,1.)
18 18
19 @testset "Constructors" begin 19 @testset "Constructors" begin
20 op = VolumeOperator(inner_stencil,closure_stencils,(11,),even) 20 op = VolumeOperator(inner_stencil,closure_stencils,(11,),even)
21 @test op == VolumeOperator(g,inner_stencil,closure_stencils,even) 21 @test op == VolumeOperator(g,inner_stencil,closure_stencils,even)
22 @test op isa LazyTensor{T,1,1} where T 22 @test op isa LazyTensor{T,1,1} where T