Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Commit da3514e

Browse files
committed
cleaned up an unused function
1 parent af86556 commit da3514e

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/boundary_padded_arrays.jl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ BoundaryPadded3Tensor{T, D, V, B} = BoundaryPaddedArray{T, D, 3, 2, V, B}
8787
ComposedBoundaryPaddedMatrix{T,V,B} = ComposedBoundaryPaddedArray{T,2,1,V,B}
8888
ComposedBoundaryPadded3Tensor{T,V,B} = ComposedBoundaryPaddedArray{T,3,2,V,B}
8989

90-
9190
Base.size(Q::ComposedBoundaryPaddedArray) = size(Q.u).+2
9291

9392
"""
@@ -108,18 +107,6 @@ Base.ndims(Q::AbstractBoundaryPaddedArray{T,N}) where {T,N} = N
108107
add_dim(A::AbstractArray, i) = reshape(A, size(A)...,i)
109108
add_dim(i) = i
110109

111-
function experms(N::Integer, dim) # A function to correctly permute the dimensions of the padding arrays so that they can be concatanated with the rest of u in getindex(::BoundaryPaddedArray)
112-
if dim == N
113-
return Vector(1:N)
114-
elseif dim < N
115-
P = experms(N, dim+1)
116-
P[dim], P[dim+1] = P[dim+1], P[dim]
117-
return P
118-
else
119-
throw("Dim is greater than N!")
120-
end
121-
end
122-
123110
function Base.getindex(Q::BoundaryPaddedArray{T,D,N,M,V,B}, _inds...) where {T,D,N,M,V,B} #supports range and colon indexing!
124111
inds = [_inds...]
125112
S = size(Q)

0 commit comments

Comments
 (0)