Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/boundaryops/boundary_restriction.jl @ 577:cae4d5b428d6 feature/boundary_ops
Fix typo
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 01 Dec 2020 16:48:53 +0100 |
parents | 64f1b269e9fc |
children | cd7d3949f692 ea4176a5dfc5 |
comparison
equal
deleted
inserted
replaced
576:1d4417ced79f | 577:cae4d5b428d6 |
---|---|
58 | 58 |
59 function LazyTensors.apply_transpose(e::BoundaryRestriction{T,Upper}, v::AbstractArray{T,0}, i::Index{Upper}) where T | 59 function LazyTensors.apply_transpose(e::BoundaryRestriction{T,Upper}, v::AbstractArray{T,0}, i::Index{Upper}) where T |
60 return e.stencil[e.size[1] - Int(i)]*v[] | 60 return e.stencil[e.size[1] - Int(i)]*v[] |
61 end | 61 end |
62 | 62 |
63 # Catch all combinations of Lower, Upper and Inner not caught by the two previous methods. | 63 # Catch all combinations of Lower, Upper and Interior not caught by the two previous methods. |
64 function LazyTensors.apply_transpose(e::BoundaryRestriction{T}, v::AbstractArray{T,0}, i::Index) where T | 64 function LazyTensors.apply_transpose(e::BoundaryRestriction{T}, v::AbstractArray{T,0}, i::Index) where T |
65 return zero(T) | 65 return zero(T) |
66 end | 66 end |
67 | 67 |
68 function LazyTensors.apply_transpose(e::BoundaryRestriction{T}, v::AbstractArray{T,0}, i) where T | 68 function LazyTensors.apply_transpose(e::BoundaryRestriction{T}, v::AbstractArray{T,0}, i) where T |