Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/boundaryops/boundary_restriction.jl @ 2053:3a4575fa2702 feature/grids/geometry_functions
Merge bugfix/zero_dim_grid_boundary_ops
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Sat, 07 Feb 2026 22:52:17 +0100 |
| parents | 5fb64e42138c |
| children | c08bc343d1cd |
comparison
equal
deleted
inserted
replaced
| 2051:21925a343989 | 2053:3a4575fa2702 |
|---|---|
| 23 function boundary_restriction(g::EquidistantGrid, stencil_set::StencilSet, boundary) | 23 function boundary_restriction(g::EquidistantGrid, stencil_set::StencilSet, boundary) |
| 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 | |
| 29 boundary_restriction(::ZeroDimGrid, stencil_set::StencilSet, boundary) = throw(ArgumentError("ZeroDimGrid has no boundaries")) |
