Skip to content

Commit

Permalink
Minor display bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiManyer committed Jan 3, 2025
1 parent c7c490e commit f4c35ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ReferenceFEs/Dofs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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...)
Expand Down

0 comments on commit f4c35ea

Please sign in to comment.