Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/boundaryops/boundary_operator.jl @ 627:9f27f451d0a0 feature/volume_and_boundary_operators
Add todo for checking valid inputs to boundary_operator and volume_operators
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Thu, 31 Dec 2020 08:13:04 +0100 |
parents | 332f65c1abf3 |
children | b4acd25943f4 69700b0b1452 |
comparison
equal
deleted
inserted
replaced
626:8581610da4f1 | 627:9f27f451d0a0 |
---|---|
8 When `Dim>1`, the `BoundaryOperator` `op` is inflated by the outer product | 8 When `Dim>1`, the `BoundaryOperator` `op` is inflated by the outer product |
9 of `IdentityMappings` in orthogonal coordinate directions, e.g for `Dim=3`, | 9 of `IdentityMappings` in orthogonal coordinate directions, e.g for `Dim=3`, |
10 the boundary restriction operator in the y-direction direction is `Ix⊗op⊗Iz`. | 10 the boundary restriction operator in the y-direction direction is `Ix⊗op⊗Iz`. |
11 """ | 11 """ |
12 function boundary_operator(grid::EquidistantGrid{Dim,T}, closure_stencil::Stencil{T}, boundary::CartesianBoundary) where {Dim,T} | 12 function boundary_operator(grid::EquidistantGrid{Dim,T}, closure_stencil::Stencil{T}, boundary::CartesianBoundary) where {Dim,T} |
13 #TODO:Check that dim(boundary) <= Dim? | |
14 | |
13 # Create 1D boundary operator | 15 # Create 1D boundary operator |
14 r = region(boundary) | 16 r = region(boundary) |
15 d = dim(boundary) | 17 d = dim(boundary) |
16 op = BoundaryOperator(restrict(grid, d), closure_stencil, r) | 18 op = BoundaryOperator(restrict(grid, d), closure_stencil, r) |
17 | 19 |