Skip to content

Commit

Permalink
go back to how CCBlade does it
Browse files Browse the repository at this point in the history
  • Loading branch information
juddmehr committed Oct 16, 2024
1 parent 5c2f7ee commit 795a077
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/C4Blade/C4Blade.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,13 @@ struct Section{TFr,TFc,TFt,TAF}
chord::TFc
theta::TFt
af::TAF
function Section(r,chord,theta,af)
r, chord, theta = promote(r, chord, theta)
new(r,chord,theta, af)
end
end

# # promote to same type, e.g., duals
# function Section(r, chord, theta, af)
# r, chord, theta = promote(r, chord, theta)
# return Section(r, chord, theta, af)
# end
# promote to same type, e.g., duals
function Section(r, chord, theta, af)
r, chord, theta = promote(r, chord, theta)
return Section(r, chord, theta, af)
end

# convenience function to access fields within an array of structs
function Base.getproperty(obj::AbstractVector{<:Section}, sym::Symbol)
Expand Down

0 comments on commit 795a077

Please sign in to comment.