diff --git a/Project.toml b/Project.toml index fd482d0..2700be6 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "PartitionedMPSs" uuid = "17ce1de9-5131-45e3-8a48-9723b6e2dc23" authors = ["Hiroshi Shinaoka and contributors"] -version = "0.5.1" +version = "0.5.2" [deps] Coverage = "a2441757-f6aa-5fb2-8edb-039e3f45d037" diff --git a/src/subdomainmps.jl b/src/subdomainmps.jl index ec6be25..c27892c 100644 --- a/src/subdomainmps.jl +++ b/src/subdomainmps.jl @@ -85,9 +85,9 @@ function _iscompatible(projector::Projector, Ψ::AbstractMPS) return all((_iscompatible(projector, x) for x in Ψ)) end -function rearrange_siteinds(SubDomainMPS::SubDomainMPS, sites) - mps_rearranged = rearrange_siteinds(MPS(SubDomainMPS), sites) - return project(SubDomainMPS(mps_rearranged), SubDomainMPS.projector) +function rearrange_siteinds(subdmps::SubDomainMPS, sites) + mps_rearranged = rearrange_siteinds(MPS(subdmps), sites) + return project(SubDomainMPS(mps_rearranged), subdmps.projector) end # Miscellaneous Functions