Skip to content

Commit 34a40c5

Browse files
committed
change blocksectors of empty productspace
1 parent 9cc5696 commit 34a40c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/spaces/productspace.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function blocksectors(P::ProductSpace{S, N}) where {S, N}
151151
end
152152
bs = Vector{I}()
153153
if N == 0
154-
push!(bs, unit(I))
154+
return allunits(I)
155155
elseif N == 1
156156
for s in sectors(P)
157157
push!(bs, first(s))

0 commit comments

Comments
 (0)