Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/boundaryops/boundary_operator.jl @ 1098:6f51160c7ca7 feature/dissipation_operators
Merge refactor/sbpoperators/inflation
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 10 May 2022 21:15:55 +0200 |
parents | 62f321caa964 |
children | 157a78959e5d |
comparison
equal
deleted
inserted
replaced
1097:95464a1af340 | 1098:6f51160c7ca7 |
---|---|
19 one_d_grids = restrict.(Ref(grid), Tuple(1:dimension(grid))) | 19 one_d_grids = restrict.(Ref(grid), Tuple(1:dimension(grid))) |
20 Is = IdentityTensor{eltype(grid)}.(size.(one_d_grids)) | 20 Is = IdentityTensor{eltype(grid)}.(size.(one_d_grids)) |
21 | 21 |
22 return LazyTensors.inflate(op, size(grid), d) | 22 return LazyTensors.inflate(op, size(grid), d) |
23 end | 23 end |
24 # TBD: Should the inflation happen here or should we remove this method and do it at the caller instead? | |
24 | 25 |
25 """ | 26 """ |
26 BoundaryOperator{T,R,N} <: LazyTensor{T,0,1} | 27 BoundaryOperator{T,R,N} <: LazyTensor{T,0,1} |
27 | 28 |
28 Implements the boundary operator `op` for 1D as a `LazyTensor` | 29 Implements the boundary operator `op` for 1D as a `LazyTensor` |