Skip to content

Commit 32b8bff

Browse files
Merge pull request #3875 from DhairyaLGandhi/dg/ctrl_fn
Forward `split` to `mtkcompile`
2 parents 0203dda + 4713014 commit 32b8bff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/inputoutput.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ has_var(ex, x) = x ∈ Set(get_variables(ex))
166166
disturbance_inputs = disturbances(sys);
167167
implicit_dae = false,
168168
simplify = false,
169+
split = true,
169170
)
170171
171172
For a system `sys` with inputs (as determined by [`unbound_inputs`](@ref) or user specified), generate functions with additional input argument `u`
@@ -198,10 +199,11 @@ function generate_control_function(sys::AbstractSystem, inputs = unbound_inputs(
198199
simplify = false,
199200
eval_expression = false,
200201
eval_module = @__MODULE__,
202+
split = true,
201203
kwargs...)
202204
isempty(inputs) && @warn("No unbound inputs were found in system.")
203205
if !isscheduled(sys)
204-
sys = mtkcompile(sys; inputs, disturbance_inputs)
206+
sys = mtkcompile(sys; inputs, disturbance_inputs, split)
205207
end
206208
if disturbance_inputs !== nothing
207209
# add to inputs for the purposes of io processing

0 commit comments

Comments
 (0)