Mercurial > repos > public > sbplib_julia
diff src/SbpOperators/boundaryops/boundary_restriction.jl @ 1652:65b2d2c72fbc feature/sbp_operators/laplace_curvilinear
Add boundary restriction operator for mapped grid
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 26 Jun 2024 12:54:29 +0200 |
parents | 08f06bfacd5c |
children | 1f42944d4a72 |
line wrap: on
line diff
--- a/src/SbpOperators/boundaryops/boundary_restriction.jl Wed Jun 26 12:47:26 2024 +0200 +++ b/src/SbpOperators/boundaryops/boundary_restriction.jl Wed Jun 26 12:54:29 2024 +0200 @@ -25,3 +25,7 @@ converted_stencil = convert(Stencil{eltype(g)}, closure_stencil) return BoundaryOperator(g, converted_stencil, boundary) end + +function boundary_restriction(g::MappedGrid, stencil_set::StencilSet, boundary) + return boundary_restriction(logicalgrid(g), stencil_set, boundary) +end