Mercurial > repos > public > sbplib_julia
changeset 258:3ea8c60ccef3 boundary_conditions
Fix a few typos in documentation and add a few TODOs
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 28 Jun 2019 14:11:57 +0200 |
parents | d4cd4882ee9f |
children | 5571d2c5bf0f |
files | DiffOps/src/laplace.jl |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/DiffOps/src/laplace.jl Fri Jun 28 14:10:35 2019 +0200 +++ b/DiffOps/src/laplace.jl Fri Jun 28 14:11:57 2019 +0200 @@ -39,7 +39,7 @@ """ BoundaryValue{T,N,M,K} <: TensorMapping{T,2,1} - Implements the boundary operator `e` as a TensorMapping +Implements the boundary operator `e` as a TensorMapping """ struct BoundaryValue{T,N,M,K} <: TensorMapping{T,2,1} op::D2{T,N,M,K} @@ -53,6 +53,7 @@ LazyTensors.range_size(e::BoundaryValue{T}, domain_size::NTuple{1,Integer}) where T = size(e.grid) LazyTensors.domain_size(e::BoundaryValue{T}, range_size::NTuple{2,Integer}) where T = (range_size[3-dim(e.bId)],) +# TODO: Make this independent of dimension function LazyTensors.apply(e::BoundaryValue, v::AbstractArray, I::NTuple{2,Int}) i = I[dim(e.bId)] j = I[3-dim(e.bId)] @@ -70,7 +71,7 @@ """ NormalDerivative{T,N,M,K} <: TensorMapping{T,2,1} - Implements the boundary operator `d` as a TensorMapping +Implements the boundary operator `d` as a TensorMapping """ struct NormalDerivative{T,N,M,K} <: TensorMapping{T,2,1} op::D2{T,N,M,K} @@ -85,6 +86,7 @@ LazyTensors.domain_size(e::NormalDerivative{T}, range_size::NTuple{2,Integer}) where T = (range_size[3-dim(e.bId)],) # TODO: Not type stable D:< +# TODO: Make this independent of dimension function LazyTensors.apply(d::NormalDerivative, v::AbstractArray, I::NTuple{2,Int}) i = I[dim(d.bId)] j = I[3-dim(d.bId)]