comparison test/SbpOperators/volumeops/volume_operator_test.jl @ 1761:0656b46a1a74 feature/jet_aqua

Simplify size type in VolumeOperator
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 13 Sep 2024 14:47:23 +0200
parents 471a948cd2b2
children
comparison
equal deleted inserted replaced
1760:aba2ce166546 1761:0656b46a1a74
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 = equidistant_grid(0.,1., 11) 17 g = equidistant_grid(0.,1., 11)
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
23 end 23 end
24 24
25 @testset "Sizes" begin 25 @testset "Sizes" begin