Mercurial > repos > public > sbplib_julia
changeset 698:5ddf28ddee18 refactor/operator_naming
Test inverse_inner_product on 0-dimensional grid
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Sun, 14 Feb 2021 13:52:13 +0100 |
parents | 1b3b8f82349e |
children | 40f2999f57b2 |
files | test/testSbpOperators.jl |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/test/testSbpOperators.jl Sun Feb 14 13:49:44 2021 +0100 +++ b/test/testSbpOperators.jl Sun Feb 14 13:52:13 2021 +0100 @@ -492,6 +492,11 @@ g_2D = EquidistantGrid((77,66), (0.0, 0.0), (Lx,Ly)) @testset "inverse_inner_product" begin op = read_D2_operator(sbp_operators_path()*"standard_diagonal.toml"; order=4) + @testset "0D" begin + Hi = inverse_inner_product(EquidistantGrid{Float64}(),op.quadratureClosure) + @test Hi == IdentityMapping{Float64}() + @test Hi isa TensorMapping{T,0,0} where T + end @testset "1D" begin Hi = inverse_inner_product(g_1D, op.quadratureClosure); inner_stencil = CenteredStencil(1.)