Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/boundaryops/normal_derivative.jl @ 2054:c08bc343d1cd feature/sbp_operators/laplace_curvilinear
Merge feature/grids/geometry_functions
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Sat, 07 Feb 2026 22:54:36 +0100 |
| parents | 627d94d0f333 0e93fc7fb2e2 |
| children |
comparison
equal
deleted
inserted
replaced
| 2052:a590dc4af7ea | 2054:c08bc343d1cd |
|---|---|
| 26 h_inv = inverse_spacing(g) | 26 h_inv = inverse_spacing(g) |
| 27 | 27 |
| 28 scaled_stencil = scale(closure_stencil,h_inv) | 28 scaled_stencil = scale(closure_stencil,h_inv) |
| 29 return BoundaryOperator(g, scaled_stencil, boundary) | 29 return BoundaryOperator(g, scaled_stencil, boundary) |
| 30 end | 30 end |
| 31 | |
| 32 normal_derivative(::ZeroDimGrid, stencil_set::StencilSet, boundary) = throw(ArgumentError("ZeroDimGrid has no boundaries")) | |
| 31 | 33 |
| 32 function normal_derivative(g::MappedGrid, stencil_set::StencilSet, boundary) | 34 function normal_derivative(g::MappedGrid, stencil_set::StencilSet, boundary) |
| 33 k = grid_id(boundary) | 35 k = grid_id(boundary) |
| 34 b_indices = boundary_indices(g, boundary) | 36 b_indices = boundary_indices(g, boundary) |
| 35 | 37 |
