@@ -161,9 +161,9 @@ Add a new section to the wing.
161161"""
162162function add_section! (wing:: Wing , LE_point:: Vector{Float64} ,
163163 TE_point:: Vector{Float64} , aero_model:: AeroModel , aero_data:: AeroData = nothing )
164- if aero_model === POLAR_VECTORS && wing. remove_nan
164+ if aero_model == POLAR_VECTORS && wing. remove_nan
165165 aero_data = remove_vector_nans (aero_data)
166- elseif aero_model === POLAR_MATRICES && wing. remove_nan
166+ elseif aero_model == POLAR_MATRICES && wing. remove_nan
167167 interpolate_matrix_nans! .(aero_data[3 : 5 ])
168168 end
169169 push! (wing. sections, Section (LE_point, TE_point, aero_model, aero_data))
@@ -282,7 +282,7 @@ function calculate_new_aero_data(aero_model,
282282
283283 model_type = aero_model[section_index]
284284 model_type_2 = aero_model[section_index+ 1 ]
285- if ! (model_type === model_type_2)
285+ if ! (model_type == model_type_2)
286286 throw (ArgumentError (" Different aero models over the span are not supported" ))
287287 end
288288
@@ -326,7 +326,7 @@ function calculate_new_aero_data(aero_model,
326326 return (alpha_left, delta_left, CL_data, CD_data, CM_data)
327327 end
328328
329- elseif model_type === LEI_AIRFOIL_BREUKELS
329+ elseif model_type == LEI_AIRFOIL_BREUKELS
330330 tube_diameter_left = aero_data[section_index][1 ]
331331 tube_diameter_right = aero_data[section_index + 1 ][1 ]
332332 tube_diameter_i = tube_diameter_left * left_weight + tube_diameter_right * right_weight
@@ -462,7 +462,7 @@ function refine_mesh_for_linear_cosine_distribution!(
462462 end
463463
464464 # Apply van Garrel distribution if requested
465- if spanwise_panel_distribution === :cosine_van_Garrel
465+ if spanwise_panel_distribution == COSINE_VAN_GARREL
466466 idx = calculate_cosine_van_Garrel! (wing, idx)
467467 end
468468
0 commit comments