Skip to content

Commit

Permalink
fix dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne authored and charleskawczynski committed Aug 3, 2022
1 parent 334d120 commit 63dac67
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/Geometry/conversions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,10 @@ end
end
push!(vals, val)
end
:(AxisVector(ContravariantAxis{$Ito}(), SVector{$Nto, $T}($(vals...))))
quote
Base.@_propagate_inbounds_meta
AxisVector(ContravariantAxis{$Ito}(), SVector{$Nto, $T}($(vals...)))
end
end
@generated function project(
ax::ContravariantAxis{Ito},
Expand Down Expand Up @@ -424,10 +427,13 @@ end
push!(vals, val)
end
end
:(AxisTensor(
(ContravariantAxis{$Ito}(), A.instance),
SMatrix{$Nto, $NA, $T, $(Nto * NA)}($(vals...)),
))
quote
Base.@_propagate_inbounds_meta
AxisTensor(
(ContravariantAxis{$Ito}(), A.instance),
SMatrix{$Nto, $NA, $T, $(Nto * NA)}($(vals...)),
)
end
end

"""
Expand Down

0 comments on commit 63dac67

Please sign in to comment.