comparison test/SbpOperators/volumeops/laplace/laplace_test.jl @ 990:b6238afd3bb0 feature/stencil_set_type

Add methods for creating derivative operators in 1D from stencil sets without providing directions
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Fri, 18 Mar 2022 13:02:46 +0100
parents 7bf3121c6864
children 5ec49dd2c7c4
comparison
equal deleted inserted replaced
989:7bf3121c6864 990:b6238afd3bb0
67 end 67 end
68 68
69 @testset "laplace" begin 69 @testset "laplace" begin
70 @testset "1D" begin 70 @testset "1D" begin
71 Δ = laplace(g_1D, inner_stencil, closure_stencils) 71 Δ = laplace(g_1D, inner_stencil, closure_stencils)
72 @test Δ == second_derivative(g_1D, inner_stencil, closure_stencils) 72 @test Δ == second_derivative(g_1D, inner_stencil, closure_stencils, 1)
73 @test Δ isa TensorMapping{T,1,1} where T 73 @test Δ isa TensorMapping{T,1,1} where T
74 end 74 end
75 @testset "3D" begin 75 @testset "3D" begin
76 Δ = laplace(g_3D, inner_stencil, closure_stencils) 76 Δ = laplace(g_3D, inner_stencil, closure_stencils)
77 @test Δ isa TensorMapping{T,3,3} where T 77 @test Δ isa TensorMapping{T,3,3} where T