Skip to content

Commit b8dadbc

Browse files
authored
Merge pull request #2004 from SciML/baggepinnen-patch-1
Allow empty inputs in `generate_control_function`
2 parents 79933ea + 91b92f6 commit b8dadbc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/inputoutput.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,7 @@ function generate_control_function(sys::AbstractODESystem, inputs = unbound_inpu
193193
implicit_dae = false,
194194
simplify = false,
195195
kwargs...)
196-
if isempty(inputs)
197-
error("No unbound inputs were found in system.")
198-
end
196+
isempty(inputs) && @warn("No unbound inputs were found in system.")
199197

200198
if disturbance_inputs !== nothing
201199
# add to inputs for the purposes of io processing

0 commit comments

Comments
 (0)