comparison src/SbpOperators/boundaryops/boundary_restriction.jl @ 1104:c0ab81e4c39c refactor/sbpoperators/inflation

Update docs
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Fri, 20 May 2022 11:30:46 +0200
parents 157a78959e5d
children 1cc45207817e
comparison
equal deleted inserted replaced
1100:157a78959e5d 1104:c0ab81e4c39c
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`. 9 a `BoundaryOperator`.
10 10
11 See also: [`boundary_operator`](@ref). 11 See also: [`BoundaryOperator`](@ref), [`LazyTensors.inflate`](@ref).
12 """ 12 """
13 function boundary_restriction(grid, closure_stencil, boundary) 13 function boundary_restriction(grid, closure_stencil, boundary)
14 converted_stencil = convert(Stencil{eltype(grid)}, closure_stencil) 14 converted_stencil = convert(Stencil{eltype(grid)}, closure_stencil)
15 15
16 op = BoundaryOperator(restrict(grid, dim(boundary)), converted_stencil, region(boundary)) 16 op = BoundaryOperator(restrict(grid, dim(boundary)), converted_stencil, region(boundary))