comparison src/SbpOperators/boundaryops/boundary_restriction.jl @ 947:38d1752a9aff feature/laplace_opset

Reformat "See also:"
author Jonatan Werpers <jonatan@werpers.com>
date Sun, 13 Mar 2022 21:01:09 +0100
parents 22c80fb36400
children 365bc4e2a6a2
comparison
equal deleted inserted replaced
936:22c80fb36400 947:38d1752a9aff
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 [`boundary_operator`](@ref). 9 a `BoundaryOperator`.
10
11 See also: [`boundary_operator`](@ref).
10 """ 12 """
11 function boundary_restriction(grid, closure_stencil::Stencil, boundary) 13 function boundary_restriction(grid, closure_stencil::Stencil, boundary)
12 converted_stencil = convert(Stencil{eltype(grid)}, closure_stencil) 14 converted_stencil = convert(Stencil{eltype(grid)}, closure_stencil)
13 return SbpOperators.boundary_operator(grid, converted_stencil, boundary) 15 return SbpOperators.boundary_operator(grid, converted_stencil, boundary)
14 end 16 end