Skip to content

Commit 38f2b0a

Browse files
fix: fix defaulting allow_algebraic = fully_determined
1 parent f019275 commit 38f2b0a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/systems/systems.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,21 @@ topological sort of the observed equations in `sys`.
2525
### Optional Keyword Arguments:
2626
+ When `simplify=true`, the `simplify` function will be applied during the tearing
2727
process.
28-
+ `allow_symbolic=false`, `allow_algebraic=nothing`, `allow_parameter=true`, and
28+
+ `allow_symbolic=false`, `allow_algebraic=fully_determined`, `allow_parameter=true`, and
2929
`conservative=false` limit the coefficient types during tearing. In particular,
3030
`conservative=true` limits tearing to only solve for trivial linear systems where
3131
the coefficient has the absolute value of ``1``. `allow_symbolic` allows arbitrary
3232
symbolic coefficients. If it is false, `allow_algebraic` allows symbolic coefficients
3333
involving only algebraic variables and parameters. Otherwise, `allow_parameter` only
3434
allows coefficients containing parameters. `allow_algebraic` defaults to
35-
`fully_determined` if `nothing`.
35+
`fully_determined`.
3636
+ `fully_determined=true` controls whether or not an error will be thrown if the number
3737
of equations don't match the number of inputs, outputs, and equations.
3838
"""
3939
function structural_simplify(
4040
sys::AbstractSystem, io = nothing; additional_passes = [], simplify = false, split = true,
41-
allow_symbolic = false, allow_algebraic = nothing, allow_parameter = true, conservative = false,
42-
fully_determined = true, kwargs...)
41+
fully_determined = true, allow_symbolic = false, allow_algebraic = fully_determined,
42+
allow_parameter = true, conservative = false, kwargs...)
4343
isscheduled(sys) && throw(RepeatedStructuralSimplificationError())
4444
newsys′ = __structural_simplify(sys, io; simplify, allow_symbolic, allow_algebraic,
4545
allow_parameter, conservative, fully_determined, kwargs...)

0 commit comments

Comments
 (0)