Skip to content

Commit be76e77

Browse files
committed
fix docstring for build control function
1 parent 83d6cee commit be76e77

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/inputoutput.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ has_var(ex, x) = x ∈ Set(get_variables(ex))
160160
# Build control function
161161

162162
"""
163-
(f_oop, f_ip), dvs, p = generate_control_function(sys::AbstractODESystem, dvs = states(sys), ps = parameters(sys); implicit_dae = false, ddvs = if implicit_dae
163+
(f_oop, f_ip), dvs, p = generate_control_function(sys::AbstractODESystem, inputs = unbound_inputs(sys); implicit_dae = false, ddvs = if implicit_dae
164164
165-
For a system `sys` that has unbound inputs (as determined by [`unbound_inputs`](@ref)), generate a function with additional input argument `in`
165+
For a system `sys` with inputs (as determined by [`unbound_inputs`](@ref) or user specified), generate a function with additional input argument `in`
166166
```
167167
f_oop : (u,in,p,t) -> rhs
168168
f_ip : (uout,u,in,p,t) -> nothing
@@ -187,7 +187,7 @@ function generate_control_function(sys::AbstractODESystem, inputs = unbound_inpu
187187
error("No unbound inputs were found in system.")
188188
end
189189

190-
sys, diff_idxs, alge_idxs = io_preprocessing(sys, inputs, []; simplify, kwargs...)
190+
sys, _ = io_preprocessing(sys, inputs, []; simplify, kwargs...)
191191

192192
dvs = states(sys)
193193
ps = parameters(sys)

0 commit comments

Comments
 (0)