Mercurial > repos > public > sbplib_julia
comparison test/SbpOperators/volumeops/derivatives/second_derivative_test.jl @ 995:1ba8a398af9c refactor/lazy_tensors
Rename types
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 18 Mar 2022 21:14:47 +0100 |
parents | 2ae62dbaf839 |
children | 7fc8df5157a7 |
comparison
equal
deleted
inserted
replaced
994:55ab7801c45f | 995:1ba8a398af9c |
---|---|
24 @test Dₓₓ isa VolumeOperator | 24 @test Dₓₓ isa VolumeOperator |
25 end | 25 end |
26 @testset "2D" begin | 26 @testset "2D" begin |
27 Dₓₓ = second_derivative(g_2D,inner_stencil,closure_stencils,1) | 27 Dₓₓ = second_derivative(g_2D,inner_stencil,closure_stencils,1) |
28 D2 = second_derivative(g_1D,inner_stencil,closure_stencils) | 28 D2 = second_derivative(g_1D,inner_stencil,closure_stencils) |
29 I = IdentityMapping{Float64}(size(g_2D)[2]) | 29 I = IdentityTensor{Float64}(size(g_2D)[2]) |
30 @test Dₓₓ == D2⊗I | 30 @test Dₓₓ == D2⊗I |
31 @test Dₓₓ == second_derivative(g_2D,stencil_set,1) | 31 @test Dₓₓ == second_derivative(g_2D,stencil_set,1) |
32 @test Dₓₓ isa TensorMapping{T,2,2} where T | 32 @test Dₓₓ isa LazyTensor{T,2,2} where T |
33 end | 33 end |
34 end | 34 end |
35 | 35 |
36 # Exact differentiation is measured point-wise. In other cases | 36 # Exact differentiation is measured point-wise. In other cases |
37 # the error is measured in the l2-norm. | 37 # the error is measured in the l2-norm. |