Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/volumeops/volume_operator.jl @ 1384:851d1e4ab3de
Merge feature/variable_derivatives
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Thu, 08 Jun 2023 15:52:22 +0200 |
| parents | ff64acfc1ec9 |
| children | aba2ce166546 |
comparison
equal
deleted
inserted
replaced
| 1379:8e59c85a25c0 | 1384:851d1e4ab3de |
|---|---|
| 10 parity::Parity | 10 parity::Parity |
| 11 end | 11 end |
| 12 | 12 |
| 13 function VolumeOperator(grid::EquidistantGrid, inner_stencil, closure_stencils, parity) | 13 function VolumeOperator(grid::EquidistantGrid, inner_stencil, closure_stencils, parity) |
| 14 return VolumeOperator(inner_stencil, Tuple(closure_stencils), size(grid), parity) | 14 return VolumeOperator(inner_stencil, Tuple(closure_stencils), size(grid), parity) |
| 15 end | 15 end # TBD: Remove this function? |
| 16 | 16 |
| 17 closure_size(::VolumeOperator{T,N,M}) where {T,N,M} = M | 17 closure_size(::VolumeOperator{T,N,M}) where {T,N,M} = M |
| 18 | 18 |
| 19 LazyTensors.range_size(op::VolumeOperator) = op.size | 19 LazyTensors.range_size(op::VolumeOperator) = op.size |
| 20 LazyTensors.domain_size(op::VolumeOperator) = op.size | 20 LazyTensors.domain_size(op::VolumeOperator) = op.size |
