Skip to content

Commit 013ff9d

Browse files
committed
check sectortype
1 parent 2a96235 commit 013ff9d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/factorizations/truncation.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,12 @@ MAK.findtruncated_svd(values::SectorVector, strategy::TruncationByError) =
259259
MAK.findtruncated(values, strategy)
260260

261261
function MAK.findtruncated(values::SectorVector, strategy::TruncationSpace)
262-
@assert spacetype(values) == spacetype(strategy)
262+
@assert sectortype(values) == sectortype(strategy)
263263
blockstrategy(c) = truncrank(dim(strategy.space, c); strategy.by, strategy.rev)
264264
return SectorDict(c => MAK.findtruncated(d, blockstrategy(c)) for (c, d) in pairs(values))
265265
end
266266
function MAK.findtruncated_svd(values::SectorVector, strategy::TruncationSpace)
267-
@assert spacetype(values) == spacetype(strategy)
267+
@assert sectortype(values) == sectortype(strategy)
268268
blockstrategy(c) = truncrank(dim(strategy.space, c); strategy.by, strategy.rev)
269269
return SectorDict(c => MAK.findtruncated_svd(d, blockstrategy(c)) for (c, d) in pairs(values))
270270
end

0 commit comments

Comments
 (0)