Skip to content

Commit

Permalink
Support ComponentArrays
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Aug 9, 2023
1 parent 381afcc commit 165db17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/krylov_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,9 @@ function ktypeof(v::S) where S <: DenseVector
end

function ktypeof(v::S) where S <: AbstractVector
if S.name.name == :Zeros || S.name.name == :Ones || S.name.name == :SArray || S.name.name == :MArray || S.name.name == :SizedArray
if S.name.name == :Zeros || S.name.name == :Ones || S.name.name == :SArray || S.name.name == :MArray || S.name.name == :SizedArray || S.name.name == :FieldArray || S.name.name == :ComponentArray
T = eltype(S)
return Vector{T} # FillArrays, StaticArrays
return Vector{T} # FillArrays, StaticArrays, ComponentsArrays
else
return S # BlockArrays, PartitionedArrays, etc...
end
Expand Down

0 comments on commit 165db17

Please sign in to comment.