@@ -441,27 +441,6 @@ function update_effective_angle_of_attack!(alpha_corrected,
441441
442442 # Calculate AIC matrices (keep existing optimized view)
443443 calculate_AIC_matrices! (body_aero, LLT, core_radius_fraction, va_norm_array, va_unit_array)
444- # AIC_x, AIC_y, AIC_z = @views body_aero.AIC[1, :, :], body_aero.AIC[2, :, :], body_aero.AIC[3, :, :]
445-
446- # # Preallocate and calculate induced velocity directly
447- # # TODO rewrite
448- # induced_velocity = cache_body[1][va_array]
449- # induced_velocity[:, 1] .= AIC_x * gamma # 304 bytes
450- # induced_velocity[:, 2] .= AIC_y * gamma
451- # induced_velocity[:, 3] .= AIC_z * gamma
452-
453- # # Get views of AIC matrices without copying
454- # AIC_views = (@view(body_aero.AIC[1, :, :]),
455- # @view(body_aero.AIC[2, :, :]),
456- # @view(body_aero.AIC[3, :, :]))
457-
458- # # Preallocate induced velocity array
459- # induced_velocity = cache_body[1][va_array]
460-
461- # # Calculate induced velocity components in-place
462- # for (j, aic) in enumerate(AIC_views) # 384 allocated
463- # mul!(@view(induced_velocity[:, j]), aic, gamma)
464- # end
465444
466445 # Get dimensions from existing data
467446 n_rows = size (body_aero. AIC, 2 )
0 commit comments