Skip to content

Commit b7a24c8

Browse files
committed
Add constructor without type
1 parent d125463 commit b7a24c8

4 files changed

Lines changed: 23 additions & 1 deletion

File tree

NEWS.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## VortexStepMethod v3.3.0 2026-05-05
2+
3+
### Added
4+
- `ForwardDiff` compatibility, used by default in `linearize` (#232)
5+
- `backend` keyword argument for `linearize`
6+
- example `linearize_check.jl` comparing FiniteDiff and ForwardDiff tangents
7+
8+
### Changed
9+
- core structs are parameterized on the scalar type `T` so dual numbers can
10+
propagate through them; public constructors are unchanged
11+
112
## VortexStepMethod v3.2.0 2026-05-02
213

314
### Added

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "VortexStepMethod"
22
uuid = "ed3cd733-9f0f-46a9-93e0-89b8d4998dd9"
33
authors = ["1-Bart-1 <bart@vandelint.net>", "Oriol Cayon and contributors"]
4-
version = "3.2.0"
4+
version = "3.3.0"
55

66
[workspace]
77
projects = ["examples", "examples_cp", "docs", "test"]

src/wing_geometry.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ and aerodynamic model.
3030
# Returns
3131
- `Section`: A new section with the specified parameters and no aerodynamic data
3232
"""
33+
Section() = Section{Float64}()
34+
3335
function Section(LE_point, TE_point, aero_model)
3436
return Section{Float64}(MVector{3,Float64}(LE_point), MVector{3,Float64}(TE_point), aero_model, nothing)
3537
end

test/wing_geometry/test_wing_geometry.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ function ==(a::Section, b::Section)
2020
end
2121

2222
@testset "Wing Geometry Tests" begin
23+
@testset "Section default constructor" begin
24+
s = Section()
25+
@test s isa Section{Float64}
26+
@test s.LE_point == zeros(3)
27+
@test s.TE_point == zeros(3)
28+
@test s.aero_model === INVISCID
29+
@test isnothing(s.aero_data)
30+
end
31+
2332
@testset "Wing initialization" begin
2433
example_wing = Wing(10; spanwise_distribution=LINEAR)
2534
@test example_wing.n_panels == 10

0 commit comments

Comments
 (0)