Mercurial > repos > public > sbplib_julia
changeset 1799:8583f6379bd8 feature/grids/curvilinear
Fix signature of normal(g,b,i...)
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 01 Oct 2024 11:52:38 +0200 |
parents | 25dbb1c02ddc |
children | 2b5f81e288f1 34ddb953a986 |
files | src/Grids/mapped_grid.jl |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/Grids/mapped_grid.jl Tue Oct 01 11:46:22 2024 +0200 +++ b/src/Grids/mapped_grid.jl Tue Oct 01 11:52:38 2024 +0200 @@ -180,9 +180,9 @@ end end -function normal(g::MappedGrid, boundary, i) +function normal(g::MappedGrid, boundary, i...) σ = _boundary_sign(component_type(g), boundary) - ∂ξ∂x = inv(jacobian(g)[i]) + ∂ξ∂x = inv(jacobian(g)[i...]) k = grid_id(boundary) return σ*∂ξ∂x[k,:]/norm(∂ξ∂x[k,:])