From 3e79dbda7e763d5bfe874212a73e83643517bc14 Mon Sep 17 00:00:00 2001 From: Nicolas Gomez Date: Mon, 10 Jun 2024 16:51:23 -0400 Subject: [PATCH] eliminated parm from update fun --- src/IO/read_input.jl | 2 +- src/structures/update_fuse.jl | 5 ++--- test/unit_test_structures.jl | 1 - 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/IO/read_input.jl b/src/IO/read_input.jl index d7d57d11..5fe91f9f 100644 --- a/src/IO/read_input.jl +++ b/src/IO/read_input.jl @@ -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 # --------------------------------- diff --git a/src/structures/update_fuse.jl b/src/structures/update_fuse.jl index 2ab75fd0..2dbc8c5a 100644 --- a/src/structures/update_fuse.jl +++ b/src/structures/update_fuse.jl @@ -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. @@ -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] diff --git a/test/unit_test_structures.jl b/test/unit_test_structures.jl index 86b504a4..14bbec78 100644 --- a/test/unit_test_structures.jl +++ b/test/unit_test_structures.jl @@ -1,4 +1,3 @@ - @testset "structural components" begin # Fuselage weight