Mercurial > repos > public > sbplib_julia
diff test/SbpOperators/volumeops/laplace/laplace_test.jl @ 1023:52f07c77299d refactor/sbpoperators/inflation
Merge refactor/lazy_tensors
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Mon, 21 Mar 2022 09:51:07 +0100 |
| parents | 1ba8a398af9c |
| children | 7fc8df5157a7 |
line wrap: on
line diff
--- a/test/SbpOperators/volumeops/laplace/laplace_test.jl Fri Mar 18 16:57:00 2022 +0100 +++ b/test/SbpOperators/volumeops/laplace/laplace_test.jl Mon Mar 21 09:51:07 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 @@ -70,16 +70,16 @@ @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 Δ 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
