Skip to content

Commit 04270a8

Browse files
committed
fix the LInearAliasSpecifier constructor
1 parent a698ec1 commit 04270a8

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/problems/linear_problems.jl

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,12 @@ end
8080
@doc doc"""
8181
Holds information on what variables to alias
8282
when solving a LinearProblem. Conforms to the AbstractAliasSpecifier interface.
83-
`LinearAliasSpecifier(;alias_p = nothing, alias_f = nothing, alias_A = nothing, alias_b = nothing, alias = nothing)`
83+
`LinearAliasSpecifier(; alias_A = nothing, alias_b = nothing, alias = nothing)`
8484
8585
When a keyword argument is `nothing`, the default behaviour of the solver is used.
8686
8787
### Keywords
8888
89-
* `alias_p::Union{Bool, Nothing}`
90-
* `alias_f::Union{Bool, Nothing}`
9189
* `alias_A::Union{Bool, Nothing}`: alias the `A` array.
9290
* `alias_b::Union{Bool, Nothing}`: alias the `b` array.
9391
* `alias::Union{Bool, Nothing}`: sets all fields of the `LinearAliasSpecifier` to `alias`.
@@ -99,14 +97,13 @@ struct LinearAliasSpecifier <: AbstractAliasSpecifier
9997
alias_A::Union{Bool,Nothing}
10098
alias_b::Union{Bool,Nothing}
10199

102-
function LinearAliasSpecifier(; alias_A = nothing, alias_b = nothing,
103-
alias_p = nothing, alias_f = nothing, alias = nothing)
100+
function LinearAliasSpecifier(; alias_A = nothing, alias_b = nothing, alias = nothing)
104101
if alias == true
105-
new(true, true, true, true)
102+
new(true, true)
106103
elseif alias == false
107-
new(false, false, false, false)
104+
new(false, false)
108105
elseif isnothing(alias)
109-
new(alias_p, alias_f, alias_A, alias_b)
106+
new(alias_A, alias_b)
110107
end
111108
end
112109
end

0 commit comments

Comments
 (0)