diff src/Grids/mapped_grid.jl @ 1741:248304f88e49 feature/grids/curvilinear

Add TBD for deciding about what jacobian_determinant should mean for Rn->Rm grids
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 11 Sep 2024 12:09:41 +0200
parents 863385aae454
children 49bd573ab07f
line wrap: on
line diff
--- a/src/Grids/mapped_grid.jl	Wed Sep 11 09:03:55 2024 +0200
+++ b/src/Grids/mapped_grid.jl	Wed Sep 11 12:09:41 2024 +0200
@@ -77,6 +77,9 @@
         det(∂x∂ξ)
     end
 end
+# TBD: Should this be changed to calculate sqrt(g) instead?
+#       This would make it well defined also for n-dim grids embedded in higher dimensions.
+# TBD: Is there a better name? metric_determinant?
 
 function metric_tensor(g::MappedGrid)
     return map(jacobian(g)) do ∂x∂ξ