Mercurial > repos > public > sbplib_julia
comparison test/SbpOperators/volumeops/derivatives/second_derivative_test.jl @ 2090:67d8fbbb9e58 refactor/sbp_operators/direction_check
Update error messages
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Mon, 02 Mar 2026 14:21:58 +0100 |
| parents | 0f949681d3d3 |
| children | e21c295fb2da |
comparison
equal
deleted
inserted
replaced
| 2089:1bc63fa55145 | 2090:67d8fbbb9e58 |
|---|---|
| 23 Dₓₓ = second_derivative(g_1D, stencil_set) | 23 Dₓₓ = second_derivative(g_1D, stencil_set) |
| 24 @test Dₓₓ == second_derivative(g_1D, stencil_set, 1) | 24 @test Dₓₓ == second_derivative(g_1D, stencil_set, 1) |
| 25 @test Dₓₓ == second_derivative(g_1D, inner_stencil, closure_stencils) | 25 @test Dₓₓ == second_derivative(g_1D, inner_stencil, closure_stencils) |
| 26 @test Dₓₓ isa LazyTensor{Float64,1,1} | 26 @test Dₓₓ isa LazyTensor{Float64,1,1} |
| 27 | 27 |
| 28 @test_throws DomainError(3, "Direction must be inside [0, 1].") second_derivative(g_1D, stencil_set, 3) | 28 @test_throws DomainError(3, "Derivative direction must be in 1:1.") second_derivative(g_1D, stencil_set, 3) |
| 29 end | 29 end |
| 30 @testset "2D" begin | 30 @testset "2D" begin |
| 31 Dₓₓ = second_derivative(g_2D,stencil_set,1) | 31 Dₓₓ = second_derivative(g_2D,stencil_set,1) |
| 32 @test Dₓₓ isa LazyTensor{Float64,2,2} | 32 @test Dₓₓ isa LazyTensor{Float64,2,2} |
| 33 end | 33 end |
