Skip to content

Commit

Permalink
fix: fix structural_simplify with variables marked as inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Mar 13, 2024
1 parent a7836a2 commit 6878d5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/systems/systemstructure.jl
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ function _structural_simplify!(state::TearingState, io; simplify = false,
if has_io
ModelingToolkit.markio!(state, orig_inputs, io...)
end
if io !== nothing
if io !== nothing || any(isinput, state.fullvars)
state, input_idxs = ModelingToolkit.inputs_to_parameters!(state, io)
else
input_idxs = 0:-1 # Empty range
Expand Down

0 comments on commit 6878d5a

Please sign in to comment.