From f4c35eac65d3a2af30d4903250c6d158815053d9 Mon Sep 17 00:00:00 2001 From: JordiManyer Date: Fri, 3 Jan 2025 11:53:57 +1100 Subject: [PATCH] Minor display bugfix --- src/ReferenceFEs/Dofs.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ReferenceFEs/Dofs.jl b/src/ReferenceFEs/Dofs.jl index 2e8d42b07..546afc1aa 100644 --- a/src/ReferenceFEs/Dofs.jl +++ b/src/ReferenceFEs/Dofs.jl @@ -30,7 +30,7 @@ struct LinearCombinationDofVector{T,V,F} <: AbstractVector{T} end end -Base.size(a::LinearCombinationDofVector) = size(a.values,2) +Base.size(a::LinearCombinationDofVector) = (size(a.values,2),) Base.IndexStyle(::LinearCombinationDofVector) = IndexLinear() Base.getindex(::LinearCombinationDofVector{T},::Integer) where T = T() @@ -87,7 +87,7 @@ end Base.size(b::MappedDofBasis) = size(b.dofs) Base.IndexStyle(::MappedDofBasis) = IndexLinear() -Base.getindex(b::MappedDofBasis, i) = T() +Base.getindex(::MappedDofBasis{T}, ::Integer) where T = T() function Arrays.return_cache(b::MappedDofBasis, fields) f_cache = return_cache(b.F,fields,b.args...)