Mercurial > repos > public > sbplib_julia
comparison test/SbpOperators/volumeops/volume_operator_test.jl @ 1594:d68d02dd882f feature/boundary_conditions
Merge with default
author | Vidar Stiernström <vidar.stiernstrom@gmail.com> |
---|---|
date | Sat, 25 May 2024 16:07:10 -0700 |
parents | 43aaf710463e |
children | 471a948cd2b2 |
comparison
equal
deleted
inserted
replaced
1591:615eeb6e662e | 1594:d68d02dd882f |
---|---|
12 | 12 |
13 | 13 |
14 @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 = equidistant_grid(11,0.,1.) | 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 |