Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/volumeops/volume_operator.jl @ 1369:ff64acfc1ec9 feature/variable_derivatives
Add note about possibly removing a constructor for VolumeOperator
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 26 May 2023 14:59:37 +0200 |
parents | 4684c7f1c4cb |
children | aba2ce166546 |
comparison
equal
deleted
inserted
replaced
1368:26ad90b42efd | 1369:ff64acfc1ec9 |
---|---|
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 |