Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/boundaryops/boundary_restriction.jl @ 1099:05a25a5063bb refactor/sbpoperators/inflation
Try to remove volume_operator and boundary_operator methods
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 21 Mar 2022 12:51:39 +0100 |
parents | 1ba8a398af9c |
children | 157a78959e5d |
comparison
equal
deleted
inserted
replaced
1024:5be17f647018 | 1099:05a25a5063bb |
---|---|
13 | 13 |
14 See also: [`boundary_operator`](@ref). | 14 See also: [`boundary_operator`](@ref). |
15 """ | 15 """ |
16 function boundary_restriction(grid, closure_stencil::Stencil, boundary) | 16 function boundary_restriction(grid, closure_stencil::Stencil, boundary) |
17 converted_stencil = convert(Stencil{eltype(grid)}, closure_stencil) | 17 converted_stencil = convert(Stencil{eltype(grid)}, closure_stencil) |
18 return SbpOperators.boundary_operator(grid, converted_stencil, boundary) | 18 |
19 op = BoundaryOperator(restrict(grid, dim(boundary)), converted_stencil, region(boundary)) | |
20 return LazyTensors.inflate(op, size(grid), dim(boundary)) | |
19 end | 21 end |
20 | 22 |
21 """ | 23 """ |
22 boundary_restriction(grid, stencil_set, boundary) | 24 boundary_restriction(grid, stencil_set, boundary) |
23 | 25 |