Skip to content

Commit 725121f

Browse files
committed
Improve vs()
1 parent 6def635 commit 725121f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/settings.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
filename = "vsm_settings.yaml"
2-
data = YAML.load_file(joinpath(dirname(dirname(pathof(VortexStepMethod))), "data", filename))
32

43
@with_kw mutable struct WingSettings
54
name::String = "main_wing"
@@ -23,7 +22,9 @@ end
2322
const VSM_SETTINGS = VSMSettings()
2423

2524
function vs()
26-
VSM_SETTINGS
25+
res = VSM_SETTINGS
26+
res.solver_settings.max_iterations = data["solver_settings"]["max_iterations"]
27+
res
2728
end
2829

2930
function Base.show(io::IO, vs::VSMSettings)

0 commit comments

Comments
 (0)