Mercurial > repos > public > sbplib_julia
comparison test/SbpOperators/volumeops/laplace/laplace_test.jl @ 1590:62cb622cbe6b feature/sbp_operators/laplace_curvilinear
Fix typo in test jacobian
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sat, 27 Apr 2024 23:18:25 +0200 |
parents | f6774e98d223 |
children | 0685d97ebcb0 |
comparison
equal
deleted
inserted
replaced
1589:b22b9097d907 | 1590:62cb622cbe6b |
---|---|
91 | 91 |
92 @testset "MappedGrid" begin | 92 @testset "MappedGrid" begin |
93 c = Chart(unitsquare()) do (ξ,η) | 93 c = Chart(unitsquare()) do (ξ,η) |
94 @SVector[2ξ + η*(1-η), 3η+(1+η/2)*ξ^2] | 94 @SVector[2ξ + η*(1-η), 3η+(1+η/2)*ξ^2] |
95 end | 95 end |
96 Grids.jacobian(c::typeof(c), (ξ,η)) = @SMatrix[2 1-2η; 1+η/2 3+ξ^2/2] | 96 Grids.jacobian(c::typeof(c), (ξ,η)) = @SMatrix[2 1-2η; (2+η)*ξ 3+ξ^2/2] |
97 | 97 |
98 g = equidistant_grid(c, 15,15) | 98 g = equidistant_grid(c, 15,15) |
99 | 99 |
100 @test laplace(g, stencil_set) isa LazyTensor{<:Any,2,2} | 100 @test laplace(g, stencil_set) isa LazyTensor{<:Any,2,2} |
101 | 101 |