diff --git a/src/Algebra/Algebra.jl b/src/Algebra/Algebra.jl index 72f2782ac..46a520f35 100644 --- a/src/Algebra/Algebra.jl +++ b/src/Algebra/Algebra.jl @@ -18,6 +18,7 @@ using Gridap.Helpers import Base: convert, size, getindex, show, count, * import LinearAlgebra: mul! import SparseArrays: nnz, nonzeros, nzrange, findnz, rowvals +import BlockArrays: AbstractBlockedUnitRange export length_to_ptrs! export rewind_ptrs! diff --git a/src/Algebra/AlgebraInterfaces.jl b/src/Algebra/AlgebraInterfaces.jl index 242f87327..d3919cfb4 100644 --- a/src/Algebra/AlgebraInterfaces.jl +++ b/src/Algebra/AlgebraInterfaces.jl @@ -40,7 +40,7 @@ function allocate_vector(::Type{V},n::Integer) where V V(undef,n) end -function allocate_vector(::Type{<:BlockVector{T,VV}},indices::BlockedUnitRange) where {T,VV} +function allocate_vector(::Type{<:BlockVector{T,VV}},indices::AbstractBlockedUnitRange) where {T,VV} V = eltype(VV) mortar(map(ids -> allocate_vector(V,ids),blocks(indices))) end