Skip to content

Commit

Permalink
Merge pull request #898 from jClugstor/alias_api
Browse files Browse the repository at this point in the history
fix constructors for Alias specifiers
  • Loading branch information
ChrisRackauckas authored Dec 25, 2024
2 parents 85e1665 + 30a9428 commit 0bc27de
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SciMLBase"
uuid = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
authors = ["Chris Rackauckas <[email protected]> and contributors"]
version = "2.69.0"
version = "2.69.1"

[deps]
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
Expand Down
6 changes: 3 additions & 3 deletions src/problems/dde_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -424,11 +424,11 @@ struct DDEAliasSpecifier
function DDEAliasSpecifier(; alias_p = nothing, alias_f = nothing, alias_u0 = nothing,
alias_du0 = nothing, alias_tstops = nothing, alias = nothing)
if alias == true
new(true, true, true, true, true)
new(true, true, true, true)
elseif alias == false
new(false, false, false, false, false)
new(false, false, false, false)
elseif isnothing(alias)
new(alias_p, alias_f, alias_u0, alias_du0, alias_tstops)
new(alias_p, alias_f, alias_u0, alias_tstops)
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions src/problems/discrete_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ struct DiscreteAliasSpecifier
alias_p = nothing, alias_f = nothing, alias_u0 = nothing,
alias_du0 = nothing, alias = nothing)
if alias == true
new(true, true, true, true, true)
new(true, true, true)
elseif alias == false
new(false, false, false, false, false)
new(false, false, false)
elseif isnothing(alias)
new(alias_p, alias_f, alias_u0)
end
Expand Down
4 changes: 2 additions & 2 deletions src/problems/implicit_discrete_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ struct ImplicitDiscreteAliasSpecifier
alias_p = nothing, alias_f = nothing, alias_u0 = nothing,
alias_du0 = nothing, alias = nothing)
if alias == true
new(true, true, true, true, true)
new(true, true, true)
elseif alias == false
new(false, false, false, false, false)
new(false, false, false)
elseif isnothing(alias)
new(alias_p, alias_f, alias_u0)
end
Expand Down
2 changes: 1 addition & 1 deletion src/problems/optimization_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ struct OptimizationAliasSpecifier <: AbstractAliasSpecifier
elseif alias == false
new(false, false, false)
elseif isnothing(alias)
new(alias_p, alias_f, alias_u0, alias_tstops)
new(alias_p, alias_f, alias_u0)
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions src/problems/sde_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,9 @@ struct SDEAliasSpecifier <: AbstractAliasSpecifier
function SDEAliasSpecifier(; alias_p = nothing, alias_f = nothing, alias_u0 = nothing,
alias_du0 = nothing, alias_tstops = nothing, alias = nothing)
if alias == true
new(true, true, true, true, true)
new(true, true, true, true)
elseif alias == false
new(false, false, false, false, false)
new(false, false, false, false)
elseif isnothing(alias)
new(alias_p, alias_f, alias_u0, alias_tstops)
end
Expand Down

0 comments on commit 0bc27de

Please sign in to comment.