Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/boundaryops/boundary_restriction.jl @ 936:22c80fb36400 feature/laplace_opset
Fix docs and add some references
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Fri, 25 Feb 2022 17:20:40 +0100 |
parents | 6b47a9ee1632 |
children | 38d1752a9aff |
comparison
equal
deleted
inserted
replaced
935:079024db8226 | 936:22c80fb36400 |
---|---|
2 boundary_restriction(grid, closure_stencil::Stencil, boundary) | 2 boundary_restriction(grid, closure_stencil::Stencil, boundary) |
3 | 3 |
4 Creates boundary restriction operators `e` as `TensorMapping`s on `boundary` | 4 Creates boundary restriction operators `e` as `TensorMapping`s on `boundary` |
5 | 5 |
6 `e` is the restriction of a grid function to `boundary` using a `Stencil` `closure_stencil`. | 6 `e` is the restriction of a grid function to `boundary` using a `Stencil` `closure_stencil`. |
7 `e'` is the prolongation of a grid function on `boundary`` to the whole grid using the same `closure_stencil`. | 7 `e'` is the prolongation of a grid function on `boundary` to the whole grid using the same `closure_stencil`. |
8 On a one-dimensional `grid`, `e` is a `BoundaryOperator`. On a multi-dimensional `grid`, `e` is the inflation of | 8 On a one-dimensional `grid`, `e` is a `BoundaryOperator`. On a multi-dimensional `grid`, `e` is the inflation of |
9 a `BoundaryOperator`. See also [`SbpOperators.boundary_operator`](@ref). | 9 a `BoundaryOperator`. See also [`boundary_operator`](@ref). |
10 """ | 10 """ |
11 function boundary_restriction(grid, closure_stencil::Stencil, boundary) | 11 function boundary_restriction(grid, closure_stencil::Stencil, boundary) |
12 converted_stencil = convert(Stencil{eltype(grid)}, closure_stencil) | 12 converted_stencil = convert(Stencil{eltype(grid)}, closure_stencil) |
13 return SbpOperators.boundary_operator(grid, converted_stencil, boundary) | 13 return SbpOperators.boundary_operator(grid, converted_stencil, boundary) |
14 end | 14 end |