Mercurial > repos > public > sbplib_julia
comparison test/SbpOperators/volumeops/laplace/laplace_test.jl @ 1045:0e31b9901160 feature/dissipation_operators
Merge refactor/sbpoperators/inflation
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 22 Mar 2022 22:11:11 +0100 |
parents | 7fc8df5157a7 |
children | 7d52c4835d15 |
comparison
equal
deleted
inserted
replaced
1035:ceda69b8f27a | 1045:0e31b9901160 |
---|---|
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 LazyTensor{T,1,1} where T | 73 @test Δ isa LazyTensor{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 LazyTensor{T,3,3} where T | 77 @test Δ isa LazyTensor{T,3,3} where T |