Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/boundaryops/boundary_restriction.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 | 1f42944d4a72 5fb64e42138c |
| children |
comparison
equal
deleted
inserted
replaced
| 2052:a590dc4af7ea | 2054:c08bc343d1cd |
|---|---|
| 24 closure_stencil = parse_stencil(stencil_set["e"]["closure"]) | 24 closure_stencil = parse_stencil(stencil_set["e"]["closure"]) |
| 25 converted_stencil = convert(Stencil{eltype(g)}, closure_stencil) | 25 converted_stencil = convert(Stencil{eltype(g)}, closure_stencil) |
| 26 return BoundaryOperator(g, converted_stencil, boundary) | 26 return BoundaryOperator(g, converted_stencil, boundary) |
| 27 end | 27 end |
| 28 | 28 |
| 29 boundary_restriction(::ZeroDimGrid, stencil_set::StencilSet, boundary) = throw(ArgumentError("ZeroDimGrid has no boundaries")) | |
| 30 | |
| 29 function boundary_restriction(g::MappedGrid, stencil_set::StencilSet, boundary) | 31 function boundary_restriction(g::MappedGrid, stencil_set::StencilSet, boundary) |
| 30 return boundary_restriction(logical_grid(g), stencil_set, boundary) | 32 return boundary_restriction(logical_grid(g), stencil_set, boundary) |
| 31 end | 33 end |
