Mercurial > repos > public > sbplib_julia
diff test/SbpOperators/volumeops/laplace/laplace_test.jl @ 1049:3bb94ce74697 feature/variable_derivatives
Merge default
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 23 Mar 2022 12:54:45 +0100 |
parents | 7fc8df5157a7 |
children | 7d52c4835d15 |
line wrap: on
line diff
--- a/test/SbpOperators/volumeops/laplace/laplace_test.jl Mon Mar 21 13:21:48 2022 +0100 +++ b/test/SbpOperators/volumeops/laplace/laplace_test.jl Wed Mar 23 12:54:45 2022 +0100 @@ -17,12 +17,12 @@ @testset "1D" begin Δ = laplace(g_1D, inner_stencil, closure_stencils) @test Laplace(g_1D, stencil_set) == Laplace(Δ, stencil_set) - @test Laplace(g_1D, stencil_set) isa TensorMapping{T,1,1} where T + @test Laplace(g_1D, stencil_set) isa LazyTensor{T,1,1} where T end @testset "3D" begin Δ = laplace(g_3D, inner_stencil, closure_stencils) @test Laplace(g_3D, stencil_set) == Laplace(Δ,stencil_set) - @test Laplace(g_3D, stencil_set) isa TensorMapping{T,3,3} where T + @test Laplace(g_3D, stencil_set) isa LazyTensor{T,3,3} where T end end @@ -69,17 +69,17 @@ @testset "laplace" begin @testset "1D" begin Δ = laplace(g_1D, inner_stencil, closure_stencils) - @test Δ == second_derivative(g_1D, inner_stencil, closure_stencils) - @test Δ isa TensorMapping{T,1,1} where T + @test Δ == second_derivative(g_1D, inner_stencil, closure_stencils, 1) + @test Δ isa LazyTensor{T,1,1} where T end @testset "3D" begin Δ = laplace(g_3D, inner_stencil, closure_stencils) - @test Δ isa TensorMapping{T,3,3} where T + @test Δ isa LazyTensor{T,3,3} where T Dxx = second_derivative(g_3D, inner_stencil, closure_stencils, 1) Dyy = second_derivative(g_3D, inner_stencil, closure_stencils, 2) Dzz = second_derivative(g_3D, inner_stencil, closure_stencils, 3) @test Δ == Dxx + Dyy + Dzz - @test Δ isa TensorMapping{T,3,3} where T + @test Δ isa LazyTensor{T,3,3} where T end end