Skip to content

Commit 81b69fc

Browse files
authored
Replace all Int with Int64 in structs (#58)
1 parent 41b1e76 commit 81b69fc

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/filament.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ struct SemiInfiniteFilament <: Filament
155155
x1::Vector{Float64} # Starting point
156156
direction::Vector{Float64} # Direction vector
157157
vel_mag::Float64 # Velocity magnitude
158-
filament_direction::Int # Direction indicator (-1 or 1)
158+
filament_direction::Int64 # Direction indicator (-1 or 1)
159159
end
160160

161161
"""

src/kite_geometry.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function read_faces(filename)
1414
elseif startswith(line, "f ")
1515
parts = split(line)
1616
# Handle both f v1 v2 v3 and f v1/vt1/vn1 v2/vt2/vn2 v3/vt3/vn3 formats
17-
indices = map(p -> parse(Int, split(p, '/')[1]), parts[2:4])
17+
indices = map(p -> parse(Int64, split(p, '/')[1]), parts[2:4])
1818
push!(faces, indices)
1919
end
2020
end
@@ -188,7 +188,7 @@ Represents a curved wing that inherits from Wing with additional geometric prope
188188
Same as Wing
189189
"""
190190
mutable struct KiteWing <: AbstractWing
191-
n_panels::Int
191+
n_panels::Int64
192192
spanwise_panel_distribution::String
193193
spanwise_direction::Vector{Float64}
194194
sections::Vector{Section}

src/plotting.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ function plot_polars(
630630
)
631631
push!(polar_data_list, polar_data)
632632
# Update label with Reynolds number
633-
label_list[i] = "$(label_list[i]) Re = $(round(Int, rey*1e-5))e5"
633+
label_list[i] = "$(label_list[i]) Re = $(round(Int64, rey*1e-5))e5"
634634
end
635635

636636
# Load literature data if provided

src/solver.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ struct Solver
88
# General settings
99
aerodynamic_model_type::String
1010
density::Float64
11-
max_iterations::Int
11+
max_iterations::Int64
1212
allowed_error::Float64
1313
tol_reference_error::Float64
1414
relaxation_factor::Float64
@@ -26,7 +26,7 @@ struct Solver
2626
function Solver(;
2727
aerodynamic_model_type::String="VSM",
2828
density::Float64=1.225,
29-
max_iterations::Int=1500,
29+
max_iterations::Int64=1500,
3030
allowed_error::Float64=1e-5,
3131
tol_reference_error::Float64=0.001,
3232
relaxation_factor::Float64=0.03,

src/wing_geometry.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ end
3232
Represents a wing composed of multiple sections with aerodynamic properties.
3333
3434
# Fields
35-
- `n_panels::Int`: Number of panels in aerodynamic mesh
35+
- `n_panels::Int64`: Number of panels in aerodynamic mesh
3636
- `spanwise_panel_distribution::String`: Panel distribution type
3737
- `spanwise_direction::Vector{Float64}`: Wing span direction vector
3838
- `sections::Vector{Section}`: List of wing sections
@@ -45,7 +45,7 @@ Represents a wing composed of multiple sections with aerodynamic properties.
4545
- "unchanged": Keep original sections
4646
"""
4747
mutable struct Wing <: AbstractWing
48-
n_panels::Int
48+
n_panels::Int64
4949
spanwise_panel_distribution::String
5050
spanwise_direction::PosVector
5151
sections::Vector{Section}

0 commit comments

Comments
 (0)