Skip to content

Commit f6999e9

Browse files
committed
Fix typo
1 parent d8cd188 commit f6999e9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/ModelingToolkit.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export Term, Sym
181181
export SymScope, LocalScope, ParentScope, GlobalScope
182182
export independent_variables, independent_variable, states, parameters, equations, controls,
183183
observed, structure, full_equations
184-
export structural_simplify, expand_connections
184+
export structural_simplify, expand_connections, linearize
185185
export DiscreteSystem, DiscreteProblem
186186

187187
export calculate_jacobian, generate_jacobian, generate_function

src/systems/abstractsystem.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,6 @@ function structural_simplify(sys::AbstractSystem; simplify = false, kwargs...)
967967
return sys
968968
end
969969

970-
export linearize
971970
# TODO: The order of the states and equations should match so that the Jacobians are ẋ = Ax
972971
function linearize(sys::AbstractSystem, inputs, outputs; simplify = false, kwargs...)
973972
sys = expand_connections(sys)
@@ -1026,7 +1025,7 @@ function linearize(sys::AbstractSystem, inputs, outputs; simplify = false, kwarg
10261025
return sys, lin_fun
10271026
end
10281027

1029-
function markio!(state::TearingState, inputs, outputs)
1028+
function markio!(state, inputs, outputs)
10301029
fullvars = state.fullvars
10311030
inputset = Set(inputs)
10321031
outputset = Set(outputs)

test/linearize.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,5 @@ ModelingToolkit.unbound_inputs(pid)
8080
@unpack reference, measurement, ctr_output = pid
8181
lin = linearize(pid, [reference.u, measurement.u], [ctr_output.u])
8282
lin, lin_fun = linearize(pid, [reference.u, measurement.u], [ctr_output.u]);
83+
prob = ODEProblem(lin, [], (0.0, 1.0))
8384
lin_fun(prob.u0, prob.p, 0.0)

0 commit comments

Comments
 (0)