Skip to content

Commit

Permalink
eliminated parm from update fun
Browse files Browse the repository at this point in the history
  • Loading branch information
ngomezve committed Jun 10, 2024
1 parent 01ff3ee commit 3e79dbd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/IO/read_input.jl
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ readvtail(x) = read_input(x, vtail, dvtail)
if calculate_cabin #Resize the cabin if desired, keeping deltas
@info "Fuselage and stabilizer layouts have been overwritten; deltas will be maintained."

update_fuse_for_pax!(pari, parg, parm, fuse_tank) #update fuselage dimensions
update_fuse_for_pax!(pari, parg, fuse_tank) #update fuselage dimensions
end
# ---------------------------------

Expand Down
5 changes: 2 additions & 3 deletions src/structures/update_fuse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function update_fuse!(pari, parg)
end

"""
update_fuse_for_pax!(pari, parg, parm, fuse_tank)
update_fuse_for_pax!(pari, parg, fuse_tank)
Function to update the fuselage layout when the cabin length is not known a priori, for example if the radius is changed.
It sizes the cabin for the design number of passengers.
Expand All @@ -61,13 +61,12 @@ It sizes the cabin for the design number of passengers.
**Inputs:**
- `pari::Vector{Int64}`: vector with aircraft integer parameters
- `parg::Vector{Float64}`: vector with aircraft geometric and mass parameters
- `parm::Array{Float64}`: array with mission parameters
- `fuse_tank::struct`: structure of type `fuselage_tank` with cryogenic fuel tank parameters
**Outputs:**
No direct outputs; parameters in `parg` are modified.
"""
function update_fuse_for_pax!(pari, parg, parm, fuse_tank)
function update_fuse_for_pax!(pari, parg, fuse_tank)

seat_pitch = parg[igseatpitch]
seat_width = parg[igseatwidth]
Expand Down
1 change: 0 additions & 1 deletion test/unit_test_structures.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

@testset "structural components" begin

# Fuselage weight
Expand Down

0 comments on commit 3e79dbd

Please sign in to comment.