From 110cc6ed9136470539f9f8cfa779334f35244919 Mon Sep 17 00:00:00 2001 From: Pablo San-Jose Date: Sat, 16 Jan 2021 17:57:18 +0100 Subject: [PATCH] fix --- src/hamiltonian.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hamiltonian.jl b/src/hamiltonian.jl index f4cfcbfd..cb2ebe3a 100644 --- a/src/hamiltonian.jl +++ b/src/hamiltonian.jl @@ -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