@@ -86,8 +86,8 @@ function Section(r, chord, theta, af)
8686 return Section (r, chord, theta, af)
8787end
8888
89- function Base. similar (bc:: Broadcast.Broadcasted{Broadcast.DefaultArrayStyle{N}} , :: Type{ElType} ) where {N,ElType <: Section }
90- return StructArray {ElType } (undef, size (bc))
89+ function Base. similar (bc:: Broadcast.Broadcasted{Broadcast.DefaultArrayStyle{N}} , :: Type{Section{TF,TAF}} ) where {N,TF,TAF }
90+ return StructArray {Section{TF,TAF} } (undef, size (bc))
9191end
9292
9393"""
@@ -122,8 +122,8 @@ OperatingPoint(Vx, Vy, rho, pitch, mu, asound) = OperatingPoint(promote(Vx, Vy,
122122# convenience constructor when Re and Mach are not used.
123123OperatingPoint (Vx, Vy, rho; pitch= zero (rho), mu= one (rho), asound= one (rho)) = OperatingPoint (Vx, Vy, rho, pitch, mu, asound)
124124
125- function Base. similar (bc:: Broadcast.Broadcasted{Broadcast.DefaultArrayStyle{N}} , :: Type{ElType} ) where {N,ElType <: OperatingPoint }
126- return StructArray {ElType } (undef, size (bc))
125+ function Base. similar (bc:: Broadcast.Broadcasted{Broadcast.DefaultArrayStyle{N}} , :: Type{OperatingPoint{TF}} ) where {N,TF }
126+ return StructArray {OperatingPoint{TF} } (undef, size (bc))
127127end
128128
129129"""
@@ -172,8 +172,8 @@ Outputs(Np, Tp, a, ap, u, v, phi, alpha, W, cl, cd, cn, ct, F, G) = Outputs(prom
172172# convenience constructor to initialize
173173Outputs () = Outputs (0.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0 )
174174
175- function Base. similar (bc:: Broadcast.Broadcasted{Broadcast.DefaultArrayStyle{N}} , :: Type{ElType} ) where {N,ElType <: Outputs }
176- return StructArray {ElType } (undef, size (bc))
175+ function Base. similar (bc:: Broadcast.Broadcasted{Broadcast.DefaultArrayStyle{N}} , :: Type{Outputs{TF}} ) where {N,TF }
176+ return StructArray {Outputs{TF} } (undef, size (bc))
177177end
178178
179179# -------------------------------
0 commit comments