comparison src/Grids/mapped_grid.jl @ 1586:d4a6f9effcdd feature/grids/manifolds

Remove mapped_grid(::Chart) and add equidistant_grid(::Chart)
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 26 Apr 2024 22:49:01 +0200
parents d5aa72662161
children 8250cf5a3ce9
comparison
equal deleted inserted replaced
1583:2a9ec1e2abad 1586:d4a6f9effcdd
59 map(x,lg), 59 map(x,lg),
60 map(J,lg), 60 map(J,lg),
61 ) 61 )
62 end 62 end
63 63
64 function mapped_grid(c::Chart, size...)
65 lg = equidistant_grid(parameterspace(c), size...)
66 return MappedGrid(
67 lg,
68 map(c,lg),
69 map(ξ->jacobian(c, ξ), lg),
70 )
71 end
72 64
73 function jacobian_determinant(g::MappedGrid) 65 function jacobian_determinant(g::MappedGrid)
74 return map(jacobian(g)) do ∂x∂ξ 66 return map(jacobian(g)) do ∂x∂ξ
75 det(∂x∂ξ) 67 det(∂x∂ξ)
76 end 68 end