Mercurial > repos > public > sbplib_julia
diff src/Grids/mapped_grid.jl @ 1787:43c0bfc13de3 feature/grids/curvilinear
Delete metric_tensor_inverse
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 18 Sep 2024 22:39:38 +0200 |
parents | 265a740a49da |
children | 08710ebe940d |
line wrap: on
line diff
--- a/src/Grids/mapped_grid.jl Mon Sep 16 09:46:26 2024 +0200 +++ b/src/Grids/mapped_grid.jl Wed Sep 18 22:39:38 2024 +0200 @@ -133,17 +133,6 @@ end end -""" - metric_tensor_inverse(g::MappedGrid) - -The inverse of the metric tensor of `g` as a grid function. -""" -function metric_tensor_inverse(g::MappedGrid) - return map(jacobian(g)) do ∂x∂ξ - inv(∂x∂ξ'*∂x∂ξ) - end -end - function min_spacing(g::MappedGrid{T,1} where T) n, = size(g)