Mercurial > repos > public > sbplib_julia
comparison src/Grids/mapped_grid.jl @ 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 |
comparison
equal
deleted
inserted
replaced
| 1798:25dbb1c02ddc | 1799:8583f6379bd8 |
|---|---|
| 178 k = grid_id(boundary) | 178 k = grid_id(boundary) |
| 179 σ*∂ξ∂x[k,:]/norm(∂ξ∂x[k,:]) | 179 σ*∂ξ∂x[k,:]/norm(∂ξ∂x[k,:]) |
| 180 end | 180 end |
| 181 end | 181 end |
| 182 | 182 |
| 183 function normal(g::MappedGrid, boundary, i) | 183 function normal(g::MappedGrid, boundary, i...) |
| 184 σ = _boundary_sign(component_type(g), boundary) | 184 σ = _boundary_sign(component_type(g), boundary) |
| 185 ∂ξ∂x = inv(jacobian(g)[i]) | 185 ∂ξ∂x = inv(jacobian(g)[i...]) |
| 186 | 186 |
| 187 k = grid_id(boundary) | 187 k = grid_id(boundary) |
| 188 return σ*∂ξ∂x[k,:]/norm(∂ξ∂x[k,:]) | 188 return σ*∂ξ∂x[k,:]/norm(∂ξ∂x[k,:]) |
| 189 end | 189 end |
| 190 | 190 |
