Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pablosanjose committed Jan 16, 2021
1 parent be1df16 commit 110cc6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hamiltonian.jl
Original file line number Diff line number Diff line change
Expand Up @@ -425,9 +425,9 @@ function unflatten_or_reinterpret(vflat::AbstractArray{T}, o::OrbitalStructure{T
return vflat
end

function unflatten_or_reinterpret(vflat::AbstractArray{<:Number}, o::OrbitalStructure{T}) where {T<:Number}
function unflatten_or_reinterpret(vflat::AbstractArray{<:Number}, o::OrbitalStructure{<:Number})
check_unflatten_dst_dims(vflat, dimh(o))
return T.(vflat)
return vflat
end

# source can be reinterpreted, because the number of orbitals is the same M for all N sublattices
Expand Down

0 comments on commit 110cc6e

Please sign in to comment.