Skip to content

Commit

Permalink
improved CGA contraction type stability, fixed #63
Browse files Browse the repository at this point in the history
  • Loading branch information
chakravala committed Apr 30, 2020
1 parent 7bd38c3 commit b324d1c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/products.jl
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,11 @@ function generate_products(Field=Field,VEC=:mvec,MUL=:*,ADD=:+,SUB=:-,CONJ=:conj
end
end
return if μ
insert_t(:(MultiVector{$V}($(Expr(:call,tvec(N),out...)))))
if !istangent(V)
insert_t(:(MultiVector{$V}($(Expr(:call,tvec(N,:t),out...)))))
else
insert_t(:(MultiVector{$V}($(Expr(:call,tvec(N),out...)))))
end
else
insert_t(:(value_diff(Chain{$V,G-L}($(Expr(:call,tvec(N,G-L,:t),out...))))))
end
Expand Down

0 comments on commit b324d1c

Please sign in to comment.