Skip to content

Commit

Permalink
Change default type to Int
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianRuffert committed May 24, 2022
1 parent ca34781 commit 070344d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ function TorusMantle(D,r_torus::TRTo, r_tube::TRTu, φ::TP, θ::TT, origin::PT,
end

function TorusMantle(D::Symbol=:outwards;
# define default parameters as Int64 to not influence type promotion
# define default parameters as Int to not influence type promotion
r_torus = 1,
r_tube = 1,
φ = nothing,
θ = nothing,
origin = zero(CartesianPoint{Int64}),
rotation = one(SMatrix{3, 3, Int64, 9})
origin = zero(CartesianPoint{Int}),
rotation = one(SMatrix{3, 3, Int, 9})
)
TorusMantle(D,r_torus, r_tube, φ, θ, origin, rotation)
end
Expand Down

0 comments on commit 070344d

Please sign in to comment.