comparison test/SbpOperators/volumeops/derivatives/second_derivative_test.jl @ 1043:c16116e403e2

Merge refactor/lazy_tensors
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 22 Mar 2022 14:33:13 +0100
parents 7fc8df5157a7
children f1bb1b6d85dd
comparison
equal deleted inserted replaced
1039:696a3307b6a4 1043:c16116e403e2
25 @test Dₓₓ isa VolumeOperator 25 @test Dₓₓ isa VolumeOperator
26 end 26 end
27 @testset "2D" begin 27 @testset "2D" begin
28 Dₓₓ = second_derivative(g_2D,inner_stencil,closure_stencils,1) 28 Dₓₓ = second_derivative(g_2D,inner_stencil,closure_stencils,1)
29 D2 = second_derivative(g_1D,inner_stencil,closure_stencils,1) 29 D2 = second_derivative(g_1D,inner_stencil,closure_stencils,1)
30 I = IdentityMapping{Float64}(size(g_2D)[2]) 30 I = IdentityTensor{Float64}(size(g_2D)[2])
31 @test Dₓₓ == D2⊗I 31 @test Dₓₓ == D2⊗I
32 @test Dₓₓ == second_derivative(g_2D,stencil_set,1) 32 @test Dₓₓ == second_derivative(g_2D,stencil_set,1)
33 @test Dₓₓ isa TensorMapping{T,2,2} where T 33 @test Dₓₓ isa LazyTensor{T,2,2} where T
34 end 34 end
35 end 35 end
36 36
37 # Exact differentiation is measured point-wise. In other cases 37 # Exact differentiation is measured point-wise. In other cases
38 # the error is measured in the l2-norm. 38 # the error is measured in the l2-norm.