Skip to content

Commit d9891cb

Browse files
fix: fix structural_simplify with variables marked as inputs
1 parent 71ad069 commit d9891cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/systemstructure.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ function _structural_simplify!(state::TearingState, io; simplify = false,
656656
if has_io
657657
ModelingToolkit.markio!(state, orig_inputs, io...)
658658
end
659-
if io !== nothing
659+
if io !== nothing || any(isinput, state.fullvars)
660660
state, input_idxs = ModelingToolkit.inputs_to_parameters!(state, io)
661661
else
662662
input_idxs = 0:-1 # Empty range

0 commit comments

Comments
 (0)