Skip to content

Commit 0141122

Browse files
committed
Refactoring
1 parent 8909fce commit 0141122

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/solver.jl

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -478,14 +478,10 @@ function gamma_loop(
478478

479479
relative_velocity_array .= va_array .+ induced_velocity_all
480480
for i in 1:n_panels
481-
relative_velocity_crossz[i, :] .= cross3(
482-
view(relative_velocity_array, i, :),
483-
view(y_airf_array, i, :)
484-
)
485-
v_acrossz_array[i, :] .= cross3(
486-
view(va_array, i, :),
487-
view(y_airf_array, i, :)
488-
)
481+
relative_velocity_crossz[i, :] .= MVec3(view(relative_velocity_array, i, :)) ×
482+
MVec3(view(y_airf_array, i, :))
483+
v_acrossz_array[i, :] .= MVec3(view(va_array, i, :)) ×
484+
MVec3(view(y_airf_array, i, :))
489485
end
490486

491487
for i in 1:n_panels

0 commit comments

Comments
 (0)