Mercurial > repos > public > sbplib_julia
comparison test/SbpOperators/volumeops/volume_operator_test.jl @ 1877:21e5fe1545c0 refactor/lazy_tensors/elementwise_ops
Merge default
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 27 Jan 2025 16:56:04 +0100 |
parents | 0656b46a1a74 |
children |
comparison
equal
deleted
inserted
replaced
1840:cb3a8450ed44 | 1877:21e5fe1545c0 |
---|---|
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 |