Skip to content

Commit eae3abc

Browse files
AayushSabharwalMasonProtter
authored andcommitted
fix: fix structural_simplify with variables marked as inputs
1 parent a194114 commit eae3abc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/systemstructure.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ function _structural_simplify!(state::TearingState, io; simplify = false,
630630
if has_io
631631
ModelingToolkit.markio!(state, orig_inputs, io...)
632632
end
633-
if io !== nothing
633+
if io !== nothing || any(isinput, state.fullvars)
634634
state, input_idxs = ModelingToolkit.inputs_to_parameters!(state, io)
635635
else
636636
input_idxs = 0:-1 # Empty range

0 commit comments

Comments
 (0)