Skip to content

Commit

Permalink
Fix missing Productspace constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos authored Apr 1, 2024
1 parent 3cc8844 commit 62b2ad5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/spaces/productspace.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ function ProductSpace(space1::ElementarySpace, rspaces::Vararg{ElementarySpace})
return ProductSpace((space1, rspaces...))
end

ProductSpace(P::ProductSpace) = P

# constructors with conversion behaviour
function ProductSpace{S,N}(V::Vararg{ElementarySpace,N}) where {S<:ElementarySpace,N}
return ProductSpace{S,N}(V)

Check warning on line 33 in src/spaces/productspace.jl

View check run for this annotation

Codecov / codecov/patch

src/spaces/productspace.jl#L32-L33

Added lines #L32 - L33 were not covered by tests
Expand Down

0 comments on commit 62b2ad5

Please sign in to comment.